#3263: Warnings for monadic values not used
---------------------------------+------------------------------------------
    Reporter:  NeilMitchell      |        Owner:  igloo           
        Type:  feature request   |       Status:  closed          
    Priority:  normal            |    Milestone:  6.12.1          
   Component:  Compiler          |      Version:  6.10.2          
    Severity:  normal            |   Resolution:  fixed           
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by rwbarton):

 Testing this in 6.12.1 RC 1--when I `:load` an offending file in ghci I
 get a warning like this:

 {{{
     Warning: A do-notation statement discarded a result of type IO
                                                                   Bool.
              Suppress this warning by saying "_ <- tick<1>(return
 (tick<0>(doesFileExist "foo")))",
              or by using the flag -fno-warn-wrong-do-bind
 }}}

 There's no `tick<n>` stuff when I compile with ghc.

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