base-4.4.1.0: Basic libraries

Portabilitynon-portable
Stabilityexperimental
Maintainerlibraries@haskell.org

Control.Monad.Group

Description

Monadic grouping (used for monad comprehensions)

Synopsis

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 groupWith function from the GHC.Exts library