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.Parser.Pattern.Mode.Haskell.TH

Contents

Description

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

Synopsis

Parsers

type Expr = Expr Name Name Exp Source #

Type synonym of Expr to be used with Template Haskell.

parseExpr :: MonadError (Errors String) m => ParseMode -> String -> m Expr Source #

Parse Expr using ParseMode from haskell-src-exts.

parseExprWithFixities :: MonadError (Errors String) m => ParseMode -> [Fixity] -> String -> m Expr Source #

Parse Expr using ParseMode from haskell-src-exts, while supplying an explicit list of Fixity. Note that fixities obtained from ParseMode is ignored here.

Converting Expr

toTH :: Expr (QName l1) (Name l2) (Exp l3) -> Expr Source #

Convert Expr with haskell-src-exts AST into Expr with TemplateHaskell AST