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.
mapStateT :: (m (a, s) -> n (b, s)) -> StateT s m a -> StateT s n bmtl Control.Monad.State.Strict Map both the return value and final state of a computation using the given function.
mapWriter :: (Monoid w, Monoid w') => ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.Writer.CPS Map both the return value and output of a computation using the given function.
-
mtl Control.Monad.Writer.CPS Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.Writer.Lazy 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 bmtl Control.Monad.Writer.Lazy Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.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 bmtl Control.Monad.Writer.Strict Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapKeyVal :: (Key -> Key) -> (v1 -> v2) -> KeyMap v1 -> KeyMap v2aeson Data.Aeson.KeyMap Transform the keys and values of a KeyMap.
mapMaybe :: (a -> Maybe b) -> KeyMap a -> KeyMap baeson Data.Aeson.KeyMap Map values and collect the Just results.
mapMaybeWithKey :: (Key -> v -> Maybe u) -> KeyMap v -> KeyMap uaeson Data.Aeson.KeyMap Map values and collect the Just results.