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.
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.
mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n bmtl-prelude MTLPrelude Map the inner computation using the given function.
mapReader :: (a -> b) -> Reader r a -> Reader r bmtl-prelude MTLPrelude Transform the value returned by a Reader.
mapReaderT :: (m a -> n b) -> ReaderT r m a -> ReaderT r n bmtl-prelude MTLPrelude Transform the computation inside a ReaderT.
runReaderT (mapReaderT f m) = f . runReaderT m
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bmtl-prelude MTLPrelude 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 bmtl-prelude MTLPrelude Map both the return value and final state of a computation using the given function.