compdata-0.11: Compositional Data Types

Copyright(c) 2011 Patrick Bahr Tom Hvitved
LicenseBSD3
MaintainerTom Hvitved <hvitved@diku.dk>
Stabilityexperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell98

Data.Comp.Multi.Desugar

Description

This modules defines the Desugar type class for desugaring of terms.

Synopsis

Documentation

class (HFunctor f, HFunctor g) => Desugar f g where Source #

The desugaring term homomorphism.

Methods

desugHom :: Hom f g Source #

desugHom' :: Alg f (Context g a) Source #

Instances

(HFunctor f, HFunctor g, (:<:) f g) => Desugar f g Source #

Default desugaring instance.

Methods

desugHom :: Hom f g Source #

desugHom' :: f (Context g a) i -> Context g a i Source #

(Desugar f h, Desugar g h) => Desugar ((:+:) * f g) h Source # 

Methods

desugHom :: Hom ((* :+: f) g) h Source #

desugHom' :: (* :+: f) g (Context h a) i -> Context h a i Source #

desugar :: Desugar f g => Term f :-> Term g Source #

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.