#3401: unintuitive error message about unbalanced parentheses
--------------------+-------------------------------------------------------
Reporter:  tinlyx   |          Owner:                  
    Type:  bug      |         Status:  new             
Priority:  normal   |      Component:  Compiler        
 Version:  6.10.3   |       Severity:  normal          
Keywords:           |       Testcase:                  
      Os:  Windows  |   Architecture:  Unknown/Multiple
--------------------+-------------------------------------------------------
 A minimal test case is as follows:

 testFunc file = do
   let file1 = file)
   return file1

 If you try to load it, you will get:
 ...\test.hs:111:2:
     The last statement in a 'do' construct must be an expression

 This error message is kind of unfriendly, and probably only GHC authors
 know how a mismatched parenthesis can lead to such an error message.

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