[GHC] #3746: Poor parse error

GHC cvs-ghc at haskell.org
Mon Mar 11 21:49:27 CET 2013


#3746: Poor parse error
-------------------------------+--------------------------------------------
  Reporter:  NeilMitchell      |          Owner:                  
      Type:  bug               |         Status:  closed          
  Priority:  low               |      Milestone:  7.6.2           
 Component:  Compiler          |        Version:  6.10.4          
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:                  
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by monoidal):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 HEAD reports

 {{{
     Parse error in pattern: case x of {
                               Just foo
                                 -> do { stmt1;
                                         stmt2;
                                         .... }
                               Nothing -> a }
     Possibly caused by a missing 'do'?
 }}}

 Now the error points at the correct location and there is a helpful hint.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3746#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list