Fix parsing of typed hex literals
This commit is contained in:
parent
ce61a7c2f5
commit
ca0131f2d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user