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.

  1. orM :: Monad m => [m Bool] -> m Bool

    extra Control.Monad.Extra

    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)
    

  2. andM :: Monad m => [m Bool] -> m Bool

    extra Control.Monad.Extra

    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)
    

  3. orM :: Monad m => [m Bool] -> m Bool

    extra Extra

    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)
    

  4. andM :: Monad m => [m Bool] -> m Bool

    extra Extra

    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)
    

  5. andM :: Monad m => [m Bool] -> m Bool

    monad-loops Control.Monad.Loops

    short-circuit and for values of type Monad m => m Bool

  6. orM :: Monad m => [m Bool] -> m Bool

    monad-loops Control.Monad.Loops

    short-circuit or for values of type Monad m => m Bool

  7. andM :: Monad m => [m Bool] -> m Bool

    tasty-silver Test.Tasty.Silver.Internal

    Short-cutting version of and . sequence.

  8. orM :: Monad m => [m Bool] -> m Bool

    tasty-silver Test.Tasty.Silver.Internal

    Short-cutting version of or . sequence.

  9. andM :: Monad m => [m Bool] -> m Bool

    distribution-opensuse OpenSuse.Prelude

    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)
    

  10. orM :: Monad m => [m Bool] -> m Bool

    distribution-opensuse OpenSuse.Prelude

    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)
    

Page 1 of many | Next