| Portability | non-portable |
|---|---|
| Stability | experimental |
| Maintainer | libraries@haskell.org |
Control.Monad.Group
Description
Monadic grouping (used for monad comprehensions)
- class Monad m => MonadGroup m t where
- mgroupWith :: (a -> t) -> m a -> m (m a)
Documentation
class Monad m => MonadGroup m t whereSource
MonadGroup type class without restrictions on the type t
Methods
mgroupWith :: (a -> t) -> m a -> m (m a)Source
Instances
| Ord t => MonadGroup [] t | Grouping instance for lists using the |