syntax-tree-0.1.0.0: Typed ASTs
AST.Class.Monad
Description
A variant of Monad for Knots
Monad
Knot
class KApplicative k => KMonad k where Source #
Methods
joinK :: Recursively KFunctor p => Tree (Compose k k) p -> Tree k p Source #
Defined in AST.Class.Monad
joinK :: Recursively KFunctor p => Tree (Compose Pure Pure) p -> Tree Pure p Source #
Defined in AST.Knot.Functor
joinK :: Recursively KFunctor p => Tree (Compose (F f) (F f)) p -> Tree (F f) p Source #
Defined in AST.Knot.Ann
joinK :: Recursively KFunctor p => Tree (Compose (Ann a) (Ann a)) p -> Tree (Ann a) p Source #
bindK :: (KMonad k, Recursively KFunctor p) => Tree k p -> (forall n. KWitness k n -> Tree p n -> Tree (Compose k p) n) -> Tree k p Source #
A variant of 'Control.Monad.(>>=)' for Knots