Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. mapSubject :: (b -> a) -> SpecWith a -> SpecWith b

    hspec Test.Hspec

    Modify the subject under test. Note that this resembles a contravariant functor on the first type parameter of SpecM. This is because the subject is passed inwards, as an argument to the spec item.

  2. mapCont :: (r -> r) -> Cont r a -> Cont r a

    mtl Control.Monad.Cont

    Apply a function to transform the result of a continuation-passing computation.

  3. mapError :: (MonadError e m, MonadError e' n) => (m (Either e a) -> n (Either e' b)) -> m a -> n b

    mtl Control.Monad.Error.Class

    MonadError analogue of the mapExceptT function. The computation is unwrapped, a function is applied to the Either, and the result is lifted into the second MonadError instance.

  4. mapError :: (MonadError e m, MonadError e' n) => (m (Either e a) -> n (Either e' b)) -> m a -> n b

    mtl Control.Monad.Except

    MonadError analogue of the mapExceptT function. The computation is unwrapped, a function is applied to the Either, and the result is lifted into the second MonadError instance.

  5. mapExcept :: (Either e a -> Either e' b) -> Except e a -> Except e' b

    mtl Control.Monad.Except

    Map the unwrapped computation using the given function.

  6. mapExceptT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n b

    mtl Control.Monad.Except

    Map the unwrapped computation using the given function.

  7. mapRWS :: (Monoid w, Monoid w') => ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s b

    mtl Control.Monad.RWS.CPS

    Map the return value, final state and output of a computation using the given function.

  8. mapRWST :: (Monad n, Monoid w, Monoid w') => (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n b

    mtl Control.Monad.RWS.CPS

    Map the inner computation using the given function.

    • runRWST (mapRWST f m) r s = f (runRWST m r s) mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n b

  9. mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s b

    mtl Control.Monad.RWS.Lazy

    Map the return value, final state and output of a computation using the given function.

  10. mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n b

    mtl Control.Monad.RWS.Lazy

    Map the inner computation using the given function.

Page 102 of many | Previous | Next