#2601: Extra parens in error message's displayed code
-------------------------------+--------------------------------------------
    Reporter:  kaol            |       Owner:          
        Type:  bug             |      Status:  new     
    Priority:  normal          |   Component:  Compiler
     Version:  6.8.2           |    Severity:  minor   
    Keywords:                  |    Testcase:          
Architecture:  x86_64 (amd64)  |          Os:  Linux   
-------------------------------+--------------------------------------------
 I'm forwarding the bug [http://bugs.debian.org/499137 #499137] from
 Debian's BTS.

 With this example:
 {{{
 import System.Environment

 main = do args <- filter (/= "--nofork") getArgs
           return ()
 }}}
 I get this error message:
 {{{
     Couldn't match expected type `[[Char]]'
            against inferred type `IO [String]'
     In the second argument of `filter', namely `getArgs'
     In a 'do' expression: args <- filter ((/= "--nofork")) getArgs
     In the expression:
         do args <- filter ((/= "--nofork")) getArgs
            return ()
 }}}

 At some turn, the expression gained an extraneous pair of parenthesis.

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