Safe Haskell | None |
---|
Documentation
appView :: Expr -> AppViewSource
Gather applications to expose head and spine.
Note: everything is an application, possibly of itself to 0 arguments
asView :: Pattern -> ([Name], Pattern)Source
Gather top-level AsP
atterns to expose underlying pattern.
Remove top ScopedExpr
wrappers.
deepUnScope :: Expr -> ExprSource
Remove ScopedExpr
wrappers everywhere.
Traversal
Apply an expression rewriting to every subexpression, inside-out.
See Generic
traverseExpr :: (Monad m, Applicative m) => (Expr -> m Expr) -> a -> m aSource
ExprLike TypedBinding | |
ExprLike TypedBindings | |
ExprLike LamBinding | |
ExprLike LetBinding | |
ExprLike Expr | |
ExprLike a => ExprLike [a] | |
ExprLike (Pattern' a) | TODO: currently does not go into patterns. |
ExprLike (Clause' a) | TODO: currently does not go into clauses. |
ExprLike a => ExprLike (x, a) | |
ExprLike a => ExprLike (Named x a) | |
ExprLike a => ExprLike (Arg c a) | TODO: currently does not go into colors. |