#3453: Add "check" function 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
-----------------------------+----------------------------------------------
 Generalisation of "guard".

 check (not . isSpace) 'c' == Just 'c'

 check (not . isSpace) ' ' == Nothing

 See example in attached darcs patch

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