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.
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' btransformers Control.Monad.Trans.Writer.Strict Map both the return value and output of a computation using the given function.
mapWriterT :: (m (a, w) -> n (b, w')) -> WriterT w m a -> WriterT w' n btransformers Control.Monad.Trans.Writer.Strict Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapSize :: Testable prop => (Int -> Int) -> prop -> PropertyQuickCheck Test.QuickCheck Adjust the test case size for a property, by transforming it with the given function.
mapSubject :: (b -> a) -> SpecWith a -> SpecWith bhspec 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.
mapCont :: (r -> r) -> Cont r a -> Cont r amtl Control.Monad.Cont Apply a function to transform the result of a continuation-passing computation.
mapError :: (MonadError e m, MonadError e' n) => (m (Either e a) -> n (Either e' b)) -> m a -> n bmtl 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.
mapError :: (MonadError e m, MonadError e' n) => (m (Either e a) -> n (Either e' b)) -> m a -> n bmtl 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.
mapExcept :: (Either e a -> Either e' b) -> Except e a -> Except e' bmtl Control.Monad.Except Map the unwrapped computation using the given function.
mapExceptT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n bmtl Control.Monad.Except Map the unwrapped computation using the given function.
runExceptT (mapExceptT f m) = f (runExceptT m)
mapRWS :: (Monoid w, Monoid w') => ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s bmtl Control.Monad.RWS.CPS Map the return value, final state and output of a computation using the given function.