#3746: Poor parse error
---------------------------------+------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.14 branch
Component: Compiler | Version: 6.10.4
Keywords: | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by igloo):
* milestone: => 6.14 branch
Comment:
Thanks for the example.
HEAD gives the same error (although the column numbers are now 1
different):
{{{
h.hs:1:10: Parse error in pattern
}}}
but if you give the `-ferror-spans` flag then you get:
{{{
h.hs:(1,10)-(10,17): Parse error in pattern
}}}
(10:17 is the "a"). Perhaps the error message should be changed anyway,
but I think this is an example of where having `-ferror-spans` on by
default would be helpful.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3746#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs