packages feed

monad-extras 0.5.0 → 0.5.1

raw patch · 2 files changed

+4/−4 lines, 2 files

Files

Control/Monad/Extra.hs view
@@ -171,9 +171,9 @@              liftIO $ writeIORef result res         readIORef result --- | Draw monadic actions from a list until one of them yields a value failing---   the predicate, and then return all the passing values in a list within---   that monad.+-- | Draw monadic actions from a list until one of them yields a value+--   satisfying the predicate, and then return all the values up to and +--   including the first that succeeds in a list within that monad. sequenceUntil :: Monad m => (a -> Bool) -> [m a] -> m [a] sequenceUntil _ [] = return [] sequenceUntil p (m:ms) = do
monad-extras.cabal view
@@ -1,5 +1,5 @@ name:           monad-extras-version:        0.5.0+version:        0.5.1 synopsis:       Extra utility functions for working with monads -- description: homepage:       http://github.com/jwiegley/monad-extras