#3524: Add mfilter to Control.Monad
-----------------------------+----------------------------------------------
Reporter:  JonFairbairn      |          Owner:                  
    Type:  proposal          |         Status:  new             
Priority:  normal            |      Component:  libraries/base  
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 In the comments of #3453, I contemplated a filter function on MonadPlus.
 The consensus seems to be that this function is an appropriate addition.

 mfilter is just List.filter generalised to any MonadPlus.

 It must have been embodied in Monad comprehensions when we had those, so
 I'm sure it's simply an oversight that it hasn't been included here
 already.

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