Skip to content

Commit

Permalink
don't accept bar after empty union (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Gliebe authored Nov 27, 2021
1 parent 14ae429 commit 31350b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dhall/src/Dhall/Parser/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,6 @@ parsers embedded = Parsers{..}
let emptyUnionType = do
try (optional (_bar *> whitespace) *> _closeAngle)

_ <- optional (_bar *> whitespace)

return (Union mempty)

nonEmptyUnionType <|> emptyUnionType ) <?> "literal"
Expand Down

0 comments on commit 31350b7

Please sign in to comment.