Hoogle Search
Within LTS Haskell 24.28 (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' 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.
mapGroups :: Ord v => (Group v -> Group v) -> Multiset v -> Multiset vmore-containers Data.Multiset Maps on the multiset's groups. Groups with resulting non-positive counts will be removed from the final multiset.
mapCont :: (r -> r) -> Cont r a -> Cont r amtl-prelude MTLPrelude Apply a function to transform the result of a continuation-passing computation.
mapExcept :: (Either e a -> Either e' b) -> Except e a -> Except e' bmtl-prelude MTLPrelude 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-prelude MTLPrelude Map the unwrapped computation using the given function.
runExceptT (mapExceptT f m) = f (runExceptT m)
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s bmtl-prelude MTLPrelude Map the return value, final state and output of a computation using the given function.