@@ -62,7 +62,7 @@ everywhereOnValues f g h = (f', g', h')
6262 f' other = f other
6363
6464 g' :: Expr -> Expr
65- g' (Literal l) = g (Literal (lit g' l))
65+ g' (Literal ss l) = g (Literal ss (lit g' l))
6666 g' (UnaryMinus ss v) = g (UnaryMinus ss (g' v))
6767 g' (BinaryNoParens op v1 v2) = g (BinaryNoParens (g' op) (g' v1) (g' v2))
6868 g' (Parens v) = g (Parens (g' v))
@@ -85,7 +85,7 @@ everywhereOnValues f g h = (f', g', h')
8585 h' (ConstructorBinder ss ctor bs) = h (ConstructorBinder ss ctor (fmap h' bs))
8686 h' (BinaryNoParensBinder b1 b2 b3) = h (BinaryNoParensBinder (h' b1) (h' b2) (h' b3))
8787 h' (ParensInBinder b) = h (ParensInBinder (h' b))
88- h' (LiteralBinder l) = h (LiteralBinder (lit h' l))
88+ h' (LiteralBinder ss l) = h (LiteralBinder ss (lit h' l))
8989 h' (NamedBinder ss name b) = h (NamedBinder ss name (h' b))
9090 h' (PositionedBinder pos com b) = h (PositionedBinder pos com (h' b))
9191 h' (TypedBinder t b) = h (TypedBinder t (h' b))
@@ -136,7 +136,7 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
136136 f' other = f other
137137
138138 g' :: Expr -> m Expr
139- g' (Literal l) = Literal <$> litM (g >=> g') l
139+ g' (Literal ss l) = Literal ss <$> litM (g >=> g') l
140140 g' (UnaryMinus ss v) = UnaryMinus ss <$> (g v >>= g')
141141 g' (BinaryNoParens op v1 v2) = BinaryNoParens <$> (g op >>= g') <*> (g v1 >>= g') <*> (g v2 >>= g')
142142 g' (Parens v) = Parens <$> (g v >>= g')
@@ -156,7 +156,7 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
156156 g' other = g other
157157
158158 h' :: Binder -> m Binder
159- h' (LiteralBinder l) = LiteralBinder <$> litM (h >=> h') l
159+ h' (LiteralBinder ss l) = LiteralBinder ss <$> litM (h >=> h') l
160160 h' (ConstructorBinder ss ctor bs) = ConstructorBinder ss ctor <$> traverse (h' <=< h) bs
161161 h' (BinaryNoParensBinder b1 b2 b3) = BinaryNoParensBinder <$> (h b1 >>= h') <*> (h b2 >>= h') <*> (h b3 >>= h')
162162 h' (ParensInBinder b) = ParensInBinder <$> (h b >>= h')
@@ -205,7 +205,7 @@ everywhereOnValuesM f g h = (f', g', h')
205205 f' other = f other
206206
207207 g' :: Expr -> m Expr
208- g' (Literal l) = (Literal <$> litM g' l) >>= g
208+ g' (Literal ss l) = (Literal ss <$> litM g' l) >>= g
209209 g' (UnaryMinus ss v) = (UnaryMinus ss <$> g' v) >>= g
210210 g' (BinaryNoParens op v1 v2) = (BinaryNoParens <$> g' op <*> g' v1 <*> g' v2) >>= g
211211 g' (Parens v) = (Parens <$> g' v) >>= g
@@ -225,7 +225,7 @@ everywhereOnValuesM f g h = (f', g', h')
225225 g' other = g other
226226
227227 h' :: Binder -> m Binder
228- h' (LiteralBinder l) = (LiteralBinder <$> litM h' l) >>= h
228+ h' (LiteralBinder ss l) = (LiteralBinder ss <$> litM h' l) >>= h
229229 h' (ConstructorBinder ss ctor bs) = (ConstructorBinder ss ctor <$> traverse h' bs) >>= h
230230 h' (BinaryNoParensBinder b1 b2 b3) = (BinaryNoParensBinder <$> h' b1 <*> h' b2 <*> h' b3) >>= h
231231 h' (ParensInBinder b) = (ParensInBinder <$> h' b) >>= h
@@ -277,7 +277,7 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
277277 f' d = f d
278278
279279 g' :: Expr -> r
280- g' v@ (Literal l) = lit (g v) g' l
280+ g' v@ (Literal _ l) = lit (g v) g' l
281281 g' v@ (UnaryMinus _ v1) = g v <> g' v1
282282 g' v@ (BinaryNoParens op v1 v2) = g v <> g' op <> g' v1 <> g' v2
283283 g' v@ (Parens v1) = g v <> g' v1
@@ -297,7 +297,7 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
297297 g' v = g v
298298
299299 h' :: Binder -> r
300- h' b@ (LiteralBinder l) = lit (h b) h' l
300+ h' b@ (LiteralBinder _ l) = lit (h b) h' l
301301 h' b@ (ConstructorBinder _ _ bs) = foldl (<>) (h b) (fmap h' bs)
302302 h' b@ (BinaryNoParensBinder b1 b2 b3) = h b <> h' b1 <> h' b2 <> h' b3
303303 h' b@ (ParensInBinder b1) = h b <> h' b1
@@ -358,7 +358,7 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
358358 g'' s v = let (s', r) = g s v in r <> g' s' v
359359
360360 g' :: s -> Expr -> r
361- g' s (Literal l) = lit g'' s l
361+ g' s (Literal _ l) = lit g'' s l
362362 g' s (UnaryMinus _ v1) = g'' s v1
363363 g' s (BinaryNoParens op v1 v2) = g'' s op <> g'' s v1 <> g'' s v2
364364 g' s (Parens v1) = g'' s v1
@@ -381,7 +381,7 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
381381 h'' s b = let (s', r) = h s b in r <> h' s' b
382382
383383 h' :: s -> Binder -> r
384- h' s (LiteralBinder l) = lit h'' s l
384+ h' s (LiteralBinder _ l) = lit h'' s l
385385 h' s (ConstructorBinder _ _ bs) = foldl (<>) r0 (fmap (h'' s) bs)
386386 h' s (BinaryNoParensBinder b1 b2 b3) = h'' s b1 <> h'' s b2 <> h'' s b3
387387 h' s (ParensInBinder b) = h'' s b
@@ -443,7 +443,7 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
443443
444444 g'' s = uncurry g' <=< g s
445445
446- g' s (Literal l) = Literal <$> lit g'' s l
446+ g' s (Literal ss l) = Literal ss <$> lit g'' s l
447447 g' s (UnaryMinus ss v) = UnaryMinus ss <$> g'' s v
448448 g' s (BinaryNoParens op v1 v2) = BinaryNoParens <$> g'' s op <*> g'' s v1 <*> g'' s v2
449449 g' s (Parens v) = Parens <$> g'' s v
@@ -464,7 +464,7 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
464464
465465 h'' s = uncurry h' <=< h s
466466
467- h' s (LiteralBinder l) = LiteralBinder <$> lit h'' s l
467+ h' s (LiteralBinder ss l) = LiteralBinder ss <$> lit h'' s l
468468 h' s (ConstructorBinder ss ctor bs) = ConstructorBinder ss ctor <$> traverse (h'' s) bs
469469 h' s (BinaryNoParensBinder b1 b2 b3) = BinaryNoParensBinder <$> h'' s b1 <*> h'' s b2 <*> h'' s b3
470470 h' s (ParensInBinder b) = ParensInBinder <$> h'' s b
@@ -533,7 +533,7 @@ everythingWithScope f g h i j = (f'', g'', h'', i'', \s -> snd . j'' s)
533533 g'' s a = g s a <> g' s a
534534
535535 g' :: S. Set Ident -> Expr -> r
536- g' s (Literal l) = lit g'' s l
536+ g' s (Literal _ l) = lit g'' s l
537537 g' s (UnaryMinus _ v1) = g'' s v1
538538 g' s (BinaryNoParens op v1 v2) = g'' s op <> g'' s v1 <> g'' s v2
539539 g' s (Parens v1) = g'' s v1
@@ -562,7 +562,7 @@ everythingWithScope f g h i j = (f'', g'', h'', i'', \s -> snd . j'' s)
562562 h'' s a = h s a <> h' s a
563563
564564 h' :: S. Set Ident -> Binder -> r
565- h' s (LiteralBinder l) = lit h'' s l
565+ h' s (LiteralBinder _ l) = lit h'' s l
566566 h' s (ConstructorBinder _ _ bs) = foldMap (h'' s) bs
567567 h' s (BinaryNoParensBinder b1 b2 b3) = foldMap (h'' s) [b1, b2, b3]
568568 h' s (ParensInBinder b) = h'' s b
0 commit comments