id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3746,Poor parse error,NeilMitchell,,"Given the fragment:

{{{
f x = do case x of
            Just foo -> do
                stmt1
                stmt2
                stmt3
                stmt4
                stmt5
                stmt6
            Nothing -> 
                a <- var
                stmt1
                stmt2
                stmt3
}}}

There is a parse error after the {{{Nothing}}}, I should have included a {{{do}}}.

GHC says:

{{{
bug.hs:1:9: Parse error in pattern
}}}

This error message can be made to be arbitrarily far away from the point at which the error actually occurs.

Haskell-src-exts does far better with:

{{{
bug.hs:10:19: Parse error in pattern
}}}

Reporting {{{<-}}} binding errors against the arrow, rather than the (assumed) start of the pattern seems to be a better choice.",bug,closed,low,7.6.2,Compiler,6.10.4,fixed,,,Unknown/Multiple,Unknown/Multiple,None/Unknown,,,,,
