syntactic-3.7: Generic representation and manipulation of abstract syntax

Safe HaskellNone
LanguageHaskell2010

Language.Syntactic.Sugar.Monad

Contents

Description

Syntactic instance for Remon for domains based on Binding

Synopsis

Documentation

sugarMonad :: (Binding :<: sym, MONAD m :<: sym) => ASTF sym (m a) -> Remon sym m (ASTF sym a) Source #

One-layer sugaring of monadic actions

Orphan instances

(Syntactic a, (~) (* -> *) (Domain a) sym, (:<:) Binding sym, (:<:) (MONAD m) sym, Typeable (* -> *) m, Typeable * (Internal a)) => Syntactic (Remon sym m a) Source # 

Associated Types

type Domain (Remon sym m a) :: * -> * Source #

type Internal (Remon sym m a) :: * Source #

Methods

desugar :: Remon sym m a -> ASTF (Domain (Remon sym m a)) (Internal (Remon sym m a)) Source #

sugar :: ASTF (Domain (Remon sym m a)) (Internal (Remon sym m a)) -> Remon sym m a Source #