#1527: parsing error message that could be improved
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  closed 
    Priority:  lowest    |    Milestone:         
   Component:  Compiler  |      Version:  6.6.1  
    Severity:  minor     |   Resolution:  fixed  
    Keywords:  parser    |   Difficulty:  Unknown
          Os:  Unknown   |     Testcase:         
Architecture:  Unknown   |  
-------------------------+--------------------------------------------------
Changes (by Isaac Dupree):

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

Comment:

 Maybe this is fixed along with the mistake of allowing `->` in do-blocks?
 I'd test, but the code sample doesn't stand alone... okay,

 {{{
 foo = do
   a <- print 1
   b -> a + b + 3 + 5
   return ()
 }}}
 gives the "Parse error in pattern" with ghc-6.6.1 and

 {{{
 iodfs.hs:4:4: parse error on input `->'
 }}}
 with current 6.7.  I think that's clear enough to constitute a fix to this
 bug, so I'll mark this as fixed (please complain if you disagree!)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1527>
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

Reply via email to