@@ -68,7 +68,6 @@ everywhereOnValues f g h = (f', g', h')
68 h' (ConstructorBinder ctor bs) = h (ConstructorBinder ctor (map h' bs))
68 h' (ConstructorBinder ctor bs) = h (ConstructorBinder ctor (map h' bs))
69 h' (ObjectBinder bs) = h (ObjectBinder (map (fmap h') bs))
69 h' (ObjectBinder bs) = h (ObjectBinder (map (fmap h') bs))
70 h' (ArrayBinder bs) = h (ArrayBinder (map h' bs))
70 h' (ArrayBinder bs) = h (ArrayBinder (map h' bs))
71− h' (ConsBinder b1 b2) = h (ConsBinder (h' b1) (h' b2))
72 h' (NamedBinder name b) = h (NamedBinder name (h' b))
71 h' (NamedBinder name b) = h (NamedBinder name (h' b))
73 h' (PositionedBinder pos com b) = h (PositionedBinder pos com (h' b))
72 h' (PositionedBinder pos com b) = h (PositionedBinder pos com (h' b))
74 h' other = h other
73 h' other = h other
@@ -125,7 +124,6 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
125 h' (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> mapM (h' <=< h) bs
124 h' (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> mapM (h' <=< h) bs
126 h' (ObjectBinder bs) = ObjectBinder <$> mapM (sndM (h' <=< h)) bs
125 h' (ObjectBinder bs) = ObjectBinder <$> mapM (sndM (h' <=< h)) bs
127 h' (ArrayBinder bs) = ArrayBinder <$> mapM (h' <=< h) bs
126 h' (ArrayBinder bs) = ArrayBinder <$> mapM (h' <=< h) bs
128− h' (ConsBinder b1 b2) = ConsBinder <$> (h b1 >>= h') <*> (h b2 >>= h')
129 h' (NamedBinder name b) = NamedBinder name <$> (h b >>= h')
127 h' (NamedBinder name b) = NamedBinder name <$> (h b >>= h')
130 h' (PositionedBinder pos com b) = PositionedBinder pos com <$> (h b >>= h')
128 h' (PositionedBinder pos com b) = PositionedBinder pos com <$> (h b >>= h')
131 h' other = h other
129 h' other = h other
@@ -178,7 +176,6 @@ everywhereOnValuesM f g h = (f', g', h')
178 h' (ConstructorBinder ctor bs) = (ConstructorBinder ctor <$> mapM h' bs) >>= h
176 h' (ConstructorBinder ctor bs) = (ConstructorBinder ctor <$> mapM h' bs) >>= h
179 h' (ObjectBinder bs) = (ObjectBinder <$> mapM (sndM h') bs) >>= h
177 h' (ObjectBinder bs) = (ObjectBinder <$> mapM (sndM h') bs) >>= h
180 h' (ArrayBinder bs) = (ArrayBinder <$> mapM h' bs) >>= h
178 h' (ArrayBinder bs) = (ArrayBinder <$> mapM h' bs) >>= h
181− h' (ConsBinder b1 b2) = (ConsBinder <$> h' b1 <*> h' b2) >>= h
182 h' (NamedBinder name b) = (NamedBinder name <$> h' b) >>= h
179 h' (NamedBinder name b) = (NamedBinder name <$> h' b) >>= h
183 h' (PositionedBinder pos com b) = (PositionedBinder pos com <$> h' b) >>= h
180 h' (PositionedBinder pos com b) = (PositionedBinder pos com <$> h' b) >>= h
184 h' other = h other
181 h' other = h other
@@ -234,7 +231,6 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
234 h' b@(ConstructorBinder _ bs) = foldl (<>) (h b) (map h' bs)
231 h' b@(ConstructorBinder _ bs) = foldl (<>) (h b) (map h' bs)
235 h' b@(ObjectBinder bs) = foldl (<>) (h b) (map (h' . snd) bs)
232 h' b@(ObjectBinder bs) = foldl (<>) (h b) (map (h' . snd) bs)
236 h' b@(ArrayBinder bs) = foldl (<>) (h b) (map h' bs)
233 h' b@(ArrayBinder bs) = foldl (<>) (h b) (map h' bs)
237− h' b@(ConsBinder b1 b2) = h b <> h' b1 <> h' b2
238 h' b@(NamedBinder _ b1) = h b <> h' b1
234 h' b@(NamedBinder _ b1) = h b <> h' b1
239 h' b@(PositionedBinder _ _ b1) = h b <> h' b1
235 h' b@(PositionedBinder _ _ b1) = h b <> h' b1
240 h' b = h b
236 h' b = h b
@@ -303,7 +299,6 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
303 h' s (ConstructorBinder _ bs) = foldl (<>) r0 (map (h'' s) bs)
299 h' s (ConstructorBinder _ bs) = foldl (<>) r0 (map (h'' s) bs)
304 h' s (ObjectBinder bs) = foldl (<>) r0 (map (h'' s . snd) bs)
300 h' s (ObjectBinder bs) = foldl (<>) r0 (map (h'' s . snd) bs)
305 h' s (ArrayBinder bs) = foldl (<>) r0 (map (h'' s) bs)
301 h' s (ArrayBinder bs) = foldl (<>) r0 (map (h'' s) bs)
306− h' s (ConsBinder b1 b2) = h'' s b1 <> h'' s b2
307 h' s (NamedBinder _ b1) = h'' s b1
302 h' s (NamedBinder _ b1) = h'' s b1
308 h' s (PositionedBinder _ _ b1) = h'' s b1
303 h' s (PositionedBinder _ _ b1) = h'' s b1
309 h' _ _ = r0
304 h' _ _ = r0
@@ -373,7 +368,6 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
373 h' s (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> mapM (h'' s) bs
368 h' s (ConstructorBinder ctor bs) = ConstructorBinder ctor <$> mapM (h'' s) bs
374 h' s (ObjectBinder bs) = ObjectBinder <$> mapM (sndM (h'' s)) bs
369 h' s (ObjectBinder bs) = ObjectBinder <$> mapM (sndM (h'' s)) bs
375 h' s (ArrayBinder bs) = ArrayBinder <$> mapM (h'' s) bs
370 h' s (ArrayBinder bs) = ArrayBinder <$> mapM (h'' s) bs
376− h' s (ConsBinder b1 b2) = ConsBinder <$> h'' s b1 <*> h'' s b2
377 h' s (NamedBinder name b) = NamedBinder name <$> h'' s b
371 h' s (NamedBinder name b) = NamedBinder name <$> h'' s b
378 h' s (PositionedBinder pos com b) = PositionedBinder pos com <$> h'' s b
372 h' s (PositionedBinder pos com b) = PositionedBinder pos com <$> h'' s b
379 h' _ other = return other
373 h' _ other = return other