#3292: Add an 'ignore' function to Control.Monad
------------------------------+---------------------------------------------
 Reporter:  guest             |          Owner:                  
     Type:  proposal          |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  libraries/base    |        Version:  6.10.2          
 Severity:  minor             |     Resolution:                  
 Keywords:                    |       Testcase:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by dons):

 This is a generalization of the well-known FFI 'void' function:

 {{{
 module Foreign.Marshal.Error

 -- |Discard the return value of an 'IO' action
 --
 void     :: IO a -> IO ()
 void act  = act >> return ()
 }}}

 in base for the last decade. Generalising 'void' (with that name), seems
 more intuitive to me.

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