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

Commit b80dd53

Browse files
committed
Pull the rhs into a where clause.
1 parent 28404ae commit b80dd53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

semantic-core/src/Data/Core/Parser.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ expr :: (TokenParsing m, Monad m) => m (Term Core User)
5353
expr = ifthenelse <|> lambda <|> rec <|> load <|> assign
5454

5555
assign :: (TokenParsing m, Monad m) => m (Term Core User)
56-
assign = application <**> (flip (Core..=) <$ symbolic '=' <*> application <|> pure id) <?> "assignment"
56+
assign = application <**> (symbolic '=' *> rhs <|> pure id) <?> "assignment"
57+
where rhs = flip (Core..=) <$> application
5758

5859
application :: (TokenParsing m, Monad m) => m (Term Core User)
5960
application = projection `chainl1` (pure (Core.$$))

0 commit comments

Comments
 (0)