Hoogle Search
Within LTS Haskell 24.43 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
andM :: Monad m => [m Bool] -> m Boolverset Verset A version of and lifted to a monad. Retains the short-circuiting behaviour.
andM [Just True,Just False,undefined] == Just False andM [Just True,Just True ,undefined] == undefined \xs -> Just (and xs) == andM (map Just xs)
orM :: Monad m => [m Bool] -> m Boolverset Verset A version of or lifted to a monad. Retains the short-circuiting behaviour.
orM [Just False,Just True ,undefined] == Just True orM [Just False,Just False,undefined] == undefined \xs -> Just (or xs) == orM (map Just xs)
orM :: (Foldable f, Monad m) => f (m Bool) -> m Boolextra Data.Foldable.Extra A generalization of orM to Foldable instances. Retains the short-circuiting behaviour.
andM :: (Foldable f, Monad m) => f (m Bool) -> m Boolextra Data.Foldable.Extra A generalization of andM to Foldable instances. Retains the short-circuiting behaviour.
andM :: (Foldable f, Monad m) => f (m Bool) -> m Boolrelude Relude.Foldable.Fold Monadic version of and.
>>> andM [Just True, Just False] Just False >>> andM [Just True] Just True >>> andM [Just True, Just False, Nothing] Just False >>> andM [Just True, Nothing] Nothing >>> andM [putTextLn "1" >> pure True, putTextLn "2" >> pure False, putTextLn "3" >> pure True] 1 2 False
orM :: (Foldable f, Monad m) => f (m Bool) -> m Boolrelude Relude.Foldable.Fold Monadic version of or.
>>> orM [Just True, Just False] Just True >>> orM [Just True, Nothing] Just True >>> orM [Nothing, Just True] Nothing
andM :: (Foldable f, Monad m) => f (m Bool) -> m BoolAgda Agda.Utils.Monad No documentation available.
orM :: (Foldable f, Monad m) => f (m Bool) -> m BoolAgda Agda.Utils.Monad No documentation available.
branch :: (MonadIO m, MonadBaseControl IO m) => [m a] -> m afuzzcheck Test.FuzzCheck No documentation available.
concat :: Vector v a => [v a] -> v ario RIO.Vector No documentation available.