Skip to content

Commit 31350b7

Browse files
author
Harald Gliebe
authored
don't accept bar after empty union (#2338)
1 parent 14ae429 commit 31350b7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dhall/src/Dhall/Parser/Expression.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,8 +1066,6 @@ parsers embedded = Parsers{..}
10661066
let emptyUnionType = do
10671067
try (optional (_bar *> whitespace) *> _closeAngle)
10681068

1069-
_ <- optional (_bar *> whitespace)
1070-
10711069
return (Union mempty)
10721070

10731071
nonEmptyUnionType <|> emptyUnionType ) <?> "literal"

0 commit comments

Comments
 (0)