Ticket #222 (new bug report)

Opened 3 years ago

Poor parse error message

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

Description

The following snippet

main = print $ "hello" ++ "world
-- any random junk that goes here gets added onto the character count
-- and the quote ends it with some garbage " module

Gives:

Sample.hs:1:141: Parse error: module

The character count is crazy (there is no character 141 on the first line). In addition if I remove the module then it passes the parser, but GHC fails on it.

Note: See TracTickets for help on using tickets.