compdata-0.5.2: Compositional Data Types
Data.Comp.Multi.Desugar
Description
This modules defines the Desugar type class for desugaring of terms.
Desugar
Synopsis
class (HFunctor f, HFunctor g) => Desugar f g whereSource
The desugaring term homomorphism.
Methods
desugHom :: Hom f gSource
desugHom' :: Alg f (Context g a)Source
Instances
Default desugaring instance.
desugar :: Desugar f g => Term f :-> Term gSource
Desugar a term.
desugarA :: (HFunctor f', HFunctor g', DistAnn f p f', DistAnn g p g', Desugar f g) => Term f' :-> Term g'Source
Lift desugaring to annotated terms.