Ticket #205 (new bug report)

Opened 3 years ago

Last modified 3 years ago

MagicHash and trailing # causing a parse error

Reported by: NeilMitchell Owned by: nibro
Priority: major Milestone:
Component: parser Version: 1.8.x
Keywords: Cc:

Description

Given int :: Int# that fails to parse, but if I add a space at the end it passes.

Language.Haskell.Exts> parseDeclWithMode defaultParseMode{extensions=[MagicHash]} "int :: Int#"
ParseFailed (SrcLoc {srcFilename = "<unknown>.hs", srcLine = 1, srcColumn = 12})
 "Parse error: EOF"
Language.Haskell.Exts> parseDeclWithMode defaultParseMode{extensions=[MagicHash]} "int :: Int# "
ParseOk (TypeSig (SrcLoc {srcFilename = "<unknown>.hs", srcLine = 1, srcColumn =
 1}) [Ident "int"] (TyCon (UnQual (Ident "Int#"))))

Change History

Changed 3 years ago by NeilMitchell

Warning: This bug report is against HSE 1.9.4

Note: See TracTickets for help on using tickets.