@@ -63,7 +63,7 @@ everywhereOnValues f g h = (f', g', h')
6363
6464 g' :: Expr -> Expr
6565 g' (Literal l) = g (Literal (lit g' l))
66- g' (UnaryMinus v) = g (UnaryMinus (g' v))
66+ 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))
6969 g' (TypeClassDictionaryConstructorApp name v) = g (TypeClassDictionaryConstructorApp name (g' v))
@@ -82,11 +82,11 @@ everywhereOnValues f g h = (f', g', h')
8282 g' other = g other
8383
8484 h' :: Binder -> Binder
85- h' (ConstructorBinder ctor bs) = h (ConstructorBinder ctor (fmap h' bs))
85+ 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))
8888 h' (LiteralBinder l) = h (LiteralBinder (lit h' l))
89- h' (NamedBinder name b) = h (NamedBinder name (h' b))
89+ 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))
9292 h' other = h other
@@ -137,7 +137,7 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
137137
138138 g' :: Expr -> m Expr
139139 g' (Literal l) = Literal <$> litM (g >=> g') l
140- g' (UnaryMinus v) = UnaryMinus <$> (g v >>= g')
140+ 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')
143143 g' (TypeClassDictionaryConstructorApp name v) = TypeClassDictionaryConstructorApp name <$> (g v >>= g')
@@ -157,10 +157,10 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
157157
158158 h' :: Binder -> m Binder
159159 h' (LiteralBinder l) = LiteralBinder <$> litM (h >=> h') l
160- h' (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> traverse (h' <=< h) bs
160+ 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')
163- h' (NamedBinder name b) = NamedBinder name <$> (h b >>= h')
163+ h' (NamedBinder ss name b) = NamedBinder ss name <$> (h b >>= h')
164164 h' (PositionedBinder pos com b) = PositionedBinder pos com <$> (h b >>= h')
165165 h' (TypedBinder t b) = TypedBinder t <$> (h b >>= h')
166166 h' other = h other
@@ -206,7 +206,7 @@ everywhereOnValuesM f g h = (f', g', h')
206206
207207 g' :: Expr -> m Expr
208208 g' (Literal l) = (Literal <$> litM g' l) >>= g
209- g' (UnaryMinus v) = (UnaryMinus <$> g' v) >>= g
209+ 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
212212 g' (TypeClassDictionaryConstructorApp name v) = (TypeClassDictionaryConstructorApp name <$> g' v) >>= g
@@ -226,10 +226,10 @@ everywhereOnValuesM f g h = (f', g', h')
226226
227227 h' :: Binder -> m Binder
228228 h' (LiteralBinder l) = (LiteralBinder <$> litM h' l) >>= h
229- h' (ConstructorBinder ctor bs) = (ConstructorBinder ctor <$> traverse h' bs) >>= h
229+ 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
232- h' (NamedBinder name b) = (NamedBinder name <$> h' b) >>= h
232+ h' (NamedBinder ss name b) = (NamedBinder ss name <$> h' b) >>= h
233233 h' (PositionedBinder pos com b) = (PositionedBinder pos com <$> h' b) >>= h
234234 h' (TypedBinder t b) = (TypedBinder t <$> h' b) >>= h
235235 h' other = h other
@@ -278,7 +278,7 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
278278
279279 g' :: Expr -> r
280280 g' v@ (Literal l) = lit (g v) g' l
281- g' v@ (UnaryMinus v1) = g v <> g' v1
281+ 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
284284 g' v@ (TypeClassDictionaryConstructorApp _ v1) = g v <> g' v1
@@ -298,10 +298,10 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
298298
299299 h' :: Binder -> r
300300 h' b@ (LiteralBinder l) = lit (h b) h' l
301- h' b@ (ConstructorBinder _ bs) = foldl (<>) (h b) (fmap h' bs)
301+ 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
304- h' b@ (NamedBinder _ b1) = h b <> h' b1
304+ h' b@ (NamedBinder _ _ b1) = h b <> h' b1
305305 h' b@ (PositionedBinder _ _ b1) = h b <> h' b1
306306 h' b@ (TypedBinder _ b1) = h b <> h' b1
307307 h' b = h b
@@ -359,7 +359,7 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
359359
360360 g' :: s -> Expr -> r
361361 g' s (Literal l) = lit g'' s l
362- g' s (UnaryMinus v1) = g'' s v1
362+ 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
365365 g' s (TypeClassDictionaryConstructorApp _ v1) = g'' s v1
@@ -382,10 +382,10 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
382382
383383 h' :: s -> Binder -> r
384384 h' s (LiteralBinder l) = lit h'' s l
385- h' s (ConstructorBinder _ bs) = foldl (<>) r0 (fmap (h'' s) bs)
385+ 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
388- h' s (NamedBinder _ b1) = h'' s b1
388+ h' s (NamedBinder _ _ b1) = h'' s b1
389389 h' s (PositionedBinder _ _ b1) = h'' s b1
390390 h' s (TypedBinder _ b1) = h'' s b1
391391 h' _ _ = r0
@@ -444,7 +444,7 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
444444 g'' s = uncurry g' <=< g s
445445
446446 g' s (Literal l) = Literal <$> lit g'' s l
447- g' s (UnaryMinus v) = UnaryMinus <$> g'' s v
447+ 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
450450 g' s (TypeClassDictionaryConstructorApp name v) = TypeClassDictionaryConstructorApp name <$> g'' s v
@@ -465,10 +465,10 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
465465 h'' s = uncurry h' <=< h s
466466
467467 h' s (LiteralBinder l) = LiteralBinder <$> lit h'' s l
468- h' s (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> traverse (h'' s) bs
468+ 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
471- h' s (NamedBinder name b) = NamedBinder name <$> h'' s b
471+ h' s (NamedBinder ss name b) = NamedBinder ss name <$> h'' s b
472472 h' s (PositionedBinder pos com b) = PositionedBinder pos com <$> h'' s b
473473 h' s (TypedBinder t b) = TypedBinder t <$> h'' s b
474474 h' _ other = return other
@@ -534,7 +534,7 @@ everythingWithScope f g h i j = (f'', g'', h'', i'', \s -> snd . j'' s)
534534
535535 g' :: S. Set Ident -> Expr -> r
536536 g' s (Literal l) = lit g'' s l
537- g' s (UnaryMinus v1) = g'' s v1
537+ 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
540540 g' s (TypeClassDictionaryConstructorApp _ v1) = g'' s v1
@@ -563,10 +563,10 @@ everythingWithScope f g h i j = (f'', g'', h'', i'', \s -> snd . j'' s)
563563
564564 h' :: S. Set Ident -> Binder -> r
565565 h' s (LiteralBinder l) = lit h'' s l
566- h' s (ConstructorBinder _ bs) = foldMap (h'' s) bs
566+ 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
569- h' s (NamedBinder name b1) = h'' (S. insert name s) b1
569+ h' s (NamedBinder _ name b1) = h'' (S. insert name s) b1
570570 h' s (PositionedBinder _ _ b1) = h'' s b1
571571 h' s (TypedBinder _ b1) = h'' s b1
572572 h' _ _ = mempty
0 commit comments