Skip to content

Commit

Permalink
Fix assert parser to accept top-level nix forms
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Nov 18, 2020
1 parent dc31c5e commit 50baea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nix/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ nixIf = annotateLocation1
nixAssert :: Parser NExprLoc
nixAssert = annotateLocation1
( NAssert
<$> (reserved "assert" *> nixExpr)
<$> (reserved "assert" *> nixToplevelForm)
<*> (semi *> nixToplevelForm)
<?> "assert"
)
Expand Down

0 comments on commit 50baea5

Please sign in to comment.