| Portability | see LANGUAGE pragmas (... GHC) |
|---|---|
| Stability | experimental |
| Maintainer | nicolas.frisby@gmail.com |
Data.Yoko.Reduce
Description
A t-algebra reduces a disbanded t into a mediation of t.
- type Alg m t = Disbanded m t -> Med m t
- newtype Algebra m t = Alg (Alg m t)
- data AlgebraU m t where
- algebraFin :: (AlgebraUni m (Inhabitants u), Finite u) => AnRMN m u -> Med m (LeftmostRange (Inhabitants u))
- class DT t => AlgebraDT m t where
- class AlgebraUni m dcs
- class DC dc => AlgebraDC m dc where
Documentation
type Alg m t = Disbanded m t -> Med m tSource
A t-algebra reduces a disbanded t to the same mediation of t.
algebraFin :: (AlgebraUni m (Inhabitants u), Finite u) => AnRMN m u -> Med m (LeftmostRange (Inhabitants u))Source
class AlgebraUni m dcs Source
algebraUni determines the "algebra" from the type-sum and mediator.
Instances
| AlgebraDC m dc => AlgebraUni m (N dc) | |
| (Med m (LeftmostRange ts) ~ Med m (LeftmostRange us), AlgebraUni m ts, AlgebraUni m us) => AlgebraUni m (:+ ts us) |