flite-0.1.2: f-lite compiler, interpreter and libraries

Flite.Traversals

Documentation

onExp :: (Exp -> Exp) -> Prog -> ProgSource

onExpM :: Monad m => (Exp -> m Exp) -> Prog -> m ProgSource

fromExp :: (Exp -> [a]) -> Prog -> [a]Source

subst :: Exp -> Id -> Exp -> ExpSource

substMany :: Exp -> [(Exp, Id)] -> ExpSource

freshBody :: ([Id], Exp) -> Fresh ([Id], Exp)Source