@@ -49,6 +49,7 @@ everywhereOnValues f g h = (f', g', h')
4949 g' :: Expr -> Expr
5050 g' (UnaryMinus v) = g (UnaryMinus (g' v))
5151 g' (BinaryNoParens op v1 v2) = g (BinaryNoParens (g' op) (g' v1) (g' v2))
52+ g' (Parens v) = g (Parens (g' v))
5253 g' (OperatorSection op (Left v)) = g (OperatorSection (g' op) (Left $ g' v))
5354 g' (OperatorSection op (Right v)) = g (OperatorSection (g' op) (Right $ g' v))
5455 g' (ArrayLiteral vs) = g (ArrayLiteral (map g' vs))
@@ -104,6 +105,7 @@ everywhereOnValuesTopDownM f g h = (f' <=< f, g' <=< g, h' <=< h)
104105
105106 g' (UnaryMinus v) = UnaryMinus <$> (g v >>= g')
106107 g' (BinaryNoParens op v1 v2) = BinaryNoParens <$> (g op >>= g') <*> (g v1 >>= g') <*> (g v2 >>= g')
108+ g' (Parens v) = Parens <$> (g v >>= g')
107109 g' (OperatorSection op (Left v)) = OperatorSection <$> (g op >>= g') <*> (Left <$> (g v >>= g'))
108110 g' (OperatorSection op (Right v)) = OperatorSection <$> (g op >>= g') <*> (Right <$> (g v >>= g'))
109111 g' (ArrayLiteral vs) = ArrayLiteral <$> traverse (g' <=< g) vs
@@ -154,6 +156,7 @@ everywhereOnValuesM f g h = (f', g', h')
154156
155157 g' (UnaryMinus v) = (UnaryMinus <$> g' v) >>= g
156158 g' (BinaryNoParens op v1 v2) = (BinaryNoParens <$> g' op <*> g' v1 <*> g' v2) >>= g
159+ g' (Parens v) = (Parens <$> g' v) >>= g
157160 g' (OperatorSection op (Left v)) = (OperatorSection <$> g' op <*> (Left <$> g' v)) >>= g
158161 g' (OperatorSection op (Right v)) = (OperatorSection <$> g' op <*> (Right <$> g' v)) >>= g
159162 g' (ArrayLiteral vs) = (ArrayLiteral <$> traverse g' vs) >>= g
@@ -207,6 +210,7 @@ everythingOnValues (<>) f g h i j = (f', g', h', i', j')
207210
208211 g' v@(UnaryMinus v1) = g v <> g' v1
209212 g' v@(BinaryNoParens op v1 v2) = g v <> g' op <> g' v1 <> g' v2
213+ g' v@(Parens v1) = g v <> g' v1
210214 g' v@(OperatorSection op (Left v1)) = g v <> g' op <> g' v1
211215 g' v@(OperatorSection op (Right v1)) = g v <> g' op <> g' v1
212216 g' v@(ArrayLiteral vs) = foldl (<>) (g v) (map g' vs)
@@ -271,6 +275,7 @@ everythingWithContextOnValues s0 r0 (<>) f g h i j = (f'' s0, g'' s0, h'' s0, i'
271275
272276 g' s (UnaryMinus v1) = g'' s v1
273277 g' s (BinaryNoParens op v1 v2) = g'' s op <> g'' s v1 <> g'' s v2
278+ g' s (Parens v1) = g'' s v1
274279 g' s (OperatorSection op (Left v)) = g'' s op <> g'' s v
275280 g' s (OperatorSection op (Right v)) = g'' s op <> g'' s v
276281 g' s (ArrayLiteral vs) = foldl (<>) r0 (map (g'' s) vs)
@@ -338,6 +343,7 @@ everywhereWithContextOnValuesM s0 f g h i j = (f'' s0, g'' s0, h'' s0, i'' s0, j
338343
339344 g' s (UnaryMinus v) = UnaryMinus <$> g'' s v
340345 g' s (BinaryNoParens op v1 v2) = BinaryNoParens <$> g'' s op <*> g'' s v1 <*> g'' s v2
346+ g' s (Parens v) = Parens <$> g'' s v
341347 g' s (OperatorSection op (Left v)) = OperatorSection <$> g'' s op <*> (Left <$> g'' s v)
342348 g' s (OperatorSection op (Right v)) = OperatorSection <$> g'' s op <*> (Right <$> g'' s v)
343349 g' s (ArrayLiteral vs) = ArrayLiteral <$> traverse (g'' s) vs
@@ -417,6 +423,7 @@ everythingWithScope f g h i j = (f'', g'', h'', i'', \s -> snd . j'' s)
417423
418424 g' s (UnaryMinus v1) = g'' s v1
419425 g' s (BinaryNoParens op v1 v2) = g' s op <> g' s v1 <> g' s v2
426+ g' s (Parens v1) = g'' s v1
420427 g' s (OperatorSection op (Left v)) = g'' s op <> g'' s v
421428 g' s (OperatorSection op (Right v)) = g'' s op <> g'' s v
422429 g' s (ArrayLiteral vs) = foldMap (g'' s) vs