Hoogle Search

Within LTS Haskell 24.19 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapLeft :: (a -> c) -> Either a b -> Either c b

    extra Extra

    The mapLeft function takes a function and applies it to an Either value iff the value takes the form Left _.

    mapLeft show (Left 1) == Left "1"
    mapLeft show (Right True) == Right True
    

  2. mapMaybeM :: Monad m => (a -> m (Maybe b)) -> [a] -> m [b]

    extra Extra

    A version of mapMaybe that works with a monadic predicate.

  3. mapRight :: (b -> c) -> Either a b -> Either a c

    extra Extra

    The mapRight function takes a function and applies it to an Either value iff the value takes the form Right _.

    mapRight show (Left 1) == Left 1
    mapRight show (Right True) == Right "True"
    

  4. mapPair :: Applicative f => (a -> f c, b -> f d) -> (a, b) -> f (c, d)

    utility-ht Control.Applicative.HT

    No documentation available.

  5. mapTriple :: Applicative m => (a -> m d, b -> m e, c -> m f) -> (a, b, c) -> m (d, e, f)

    utility-ht Control.Applicative.HT

    No documentation available.

  6. mapFst :: Functor f => (a -> f c) -> (a, b) -> f (c, b)

    utility-ht Control.Functor.HT

    No documentation available.

  7. mapFst3 :: Functor f => (a -> f d) -> (a, b, c) -> f (d, b, c)

    utility-ht Control.Functor.HT

    No documentation available.

  8. mapSnd :: Functor f => (b -> f c) -> (a, b) -> f (a, c)

    utility-ht Control.Functor.HT

    No documentation available.

  9. mapSnd3 :: Functor f => (b -> f d) -> (a, b, c) -> f (a, d, c)

    utility-ht Control.Functor.HT

    No documentation available.

  10. mapThd3 :: Functor f => (c -> f d) -> (a, b, c) -> f (a, b, d)

    utility-ht Control.Functor.HT

    No documentation available.

Page 84 of many | Previous | Next