egison-pattern-src-th-mode-0.1.0.0: Parser and pretty printer for Egison pattern expressions to use with TH

Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Egison.Pretty.Pattern.Mode.Haskell.TH

Contents

Description

A printer for Egison pattern expressions to use with Template Haskell.

Synopsis

Printers

type Expr = Expr Name Name Exp Source #

Type synonym of Expr to be printed with Template Haskell.

prettyExprWithFixities :: MonadError (Error Name) m => [Fixity] -> Expr -> m Text Source #

Print Expr with an explicit list of Fixity.

Converting template-haskell's entities

type PrintMode = PrintMode Name Name Exp Source #

Type synonym of PrintMode to print Expr.

type PrintFixity = PrintFixity Name Source #

Type synonym of PrintFixity to print Expr.

type Fixity = Fixity Name Source #

Type synonym of Fixity to print Expr.

makeTHMode :: [Fixity] -> PrintMode Source #

Build PrintMode using the list of fixities.

makePrintFixity :: Fixity -> PrintFixity Source #

Build PrintFixity using Fixity to print Haskell operators.