Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapReader :: (a -> b) -> Reader r a -> Reader r bmonadology Control.Monad.Ology.Specific.ReaderT Transform the value returned by a Reader.
mapReaderT :: (m a -> n b) -> ReaderT r m a -> ReaderT r n bmonadology Control.Monad.Ology.Specific.ReaderT Transform the computation inside a ReaderT.
runReaderT (mapReaderT f m) = f . runReaderT m
mapResultFailure :: (e1 -> e2) -> Result e1 a -> Result e2 amonadology Control.Monad.Ology.Specific.Result No documentation available.
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bmonadology Control.Monad.Ology.Specific.StateT Map both the return value and final state of a computation using the given function.
mapStateT :: (m (a, s) -> n (b, s)) -> StateT s m a -> StateT s n bmonadology Control.Monad.Ology.Specific.StateT Map both the return value and final state of a computation using the given function.
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmonadology Control.Monad.Ology.Specific.WriterT 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 bmonadology Control.Monad.Ology.Specific.WriterT Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapFst :: (a -> c) -> (a, b) -> (c, b)monoid-transformer Data.Monoid.State No documentation available.
-
more-containers Data.Multimap Maps over the multimap's groups. This method can be used to convert between specific multimaps, for example:
let m1 = fromList [('a', 1), ('a', 1)] :: ListMultimap Char Int let m2 = mapGroups (fmap Set.fromList) m1 :: SetMultimap Char Int mapCounts :: Ord v => (Int -> Int) -> Multiset v -> Multiset vmore-containers Data.Multiset Maps on the multiset's counts. Groups with resulting non-positive counts will be removed from the final multiset.