Fix parsing of typed hex literals

This commit is contained in:
Adam Sampson 2007-04-29 00:10:16 +00:00
parent ce61a7c2f5
commit ca0131f2d1

View File

@ -680,7 +680,7 @@ integer :: OccParser A.LiteralRepr
integer
= do m <- md
do { d <- lexeme digits; return $ A.IntLiteral m d }
<|> do { sHash; d <- many1 hexDigit; return $ A.HexLiteral m d }
<|> do { d <- lexeme (sHash >> many1 hexDigit); return $ A.HexLiteral m d }
<?> "integer literal"
digits :: OccParser String