Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
A printer for Egison pattern expressions to use with Template Haskell.
Synopsis
- type Expr = Expr Name Name Exp
- prettyExpr :: MonadError (Error Name) m => Expr -> m Text
- prettyExprWithFixities :: MonadError (Error Name) m => [Fixity] -> Expr -> m Text
- type PrintMode = PrintMode Name Name Exp
- type PrintFixity = PrintFixity Name
- type Fixity = Fixity Name
- makeTHMode :: [Fixity] -> PrintMode
- makePrintFixity :: Fixity -> PrintFixity
Printers
prettyExpr :: MonadError (Error Name) m => Expr -> m Text Source #
Print Expr
.
prettyExprWithFixities :: MonadError (Error Name) m => [Fixity] -> Expr -> m Text Source #
Converting template-haskell
's entities
type PrintFixity = PrintFixity Name Source #
Type synonym of PrintFixity
to print Expr
.
makePrintFixity :: Fixity -> PrintFixity Source #
Build PrintFixity
using Fixity
to print Haskell operators.