Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 16f6c72

Browse files
committed
Use makeTerm'' instead of mk.
1 parent 7ecebae commit 16f6c72

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Language/Python/Assignment.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,8 @@ argumentList :: Assignment Term
240240
argumentList = symbol ArgumentList *> children expressions
241241

242242
withStatement :: Assignment Term
243-
withStatement = mk <$> symbol WithStatement <*> children (someTerm with)
243+
withStatement = makeTerm'' <$> symbol WithStatement <*> children (someTerm with)
244244
where
245-
mk _ [child] = child
246-
mk l children = makeTerm l children
247245
with = makeTerm <$> location <*> (withItem <*> term (makeTerm <$> location <*> manyTermsTill expression (void (symbol WithItem) <|> eof)))
248246
withItem = symbol WithItem *> children (flip Statement.Let <$> term expression <*> term (expression <|> emptyTerm))
249247
<|> flip Statement.Let <$> term expression <*> emptyTerm

0 commit comments

Comments
 (0)