yoko-0.1: generic programming with disbanded constructors

Portabilitysee LANGUAGE pragmas (... GHC)
Stabilityexperimental
Maintainernicolas.frisby@gmail.com

Data.Yoko.Reduce

Description

Reduction of a band of constructors into a mediation of their range.

Synopsis

Documentation

type AnRMNUni m ts = AnRMN m (Uni ts)Source

class dcs ::: (All IsDC) => Reduce m dcs whereSource

reduce embeds a mediated sum of constructors into a mediation of their range.

Methods

reduce :: AnRMNUni m dcs -> Med m (LeftmostRange dcs)Source

Instances

ReduceDC m dc => Reduce m (N dc) 
(Med m (LeftmostRange ts) ~ Med m (LeftmostRange us), Reduce m ts, Reduce m us) => Reduce m (:+ ts us) 

class DC dc => ReduceDC m dc whereSource

reduceDC embeds a mediated constructor into a mediation of its range.

Methods

reduceDC :: RMN m dc -> Med m (Range dc)Source