Fix `assert` parser to accept top-level nix forms

This commit is contained in:
Guillaume Maudoux 2020-11-03 00:00:55 +01:00
parent dc31c5e64f
commit 50baea5e1e
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ nixIf = annotateLocation1
nixAssert :: Parser NExprLoc
nixAssert = annotateLocation1
( NAssert
<$> (reserved "assert" *> nixExpr)
<$> (reserved "assert" *> nixToplevelForm)
<*> (semi *> nixToplevelForm)
<?> "assert"
)