egison-pattern-src-th-mode-0.2.1.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.

type ExprL = ExprL Name Name Exp Source #

Type synonym of ExprL to be used with Template Haskell.

data ParseMode Source #

Parser configuration in egison-pattern-src-th-mode.

Constructors

ParseMode 

Fields

parseExprL :: MonadError (Errors String) m => ParseMode -> String -> m ExprL Source #

Parse Expr using ParseMode with locations annotated.

Converting haskell-src-exts's entities

makeParseMode :: ParseMode -> ParseMode Name Name Exp String Source #

Build ParseMode using ParseMode from haskell-src-exts.

makeFixity :: Fixity -> Fixity Name Source #

Build Fixity using Fixity from haskell-src-exts.

makeParseFixity :: Fixity Name -> ParseFixity Name String Source #

Build ParseFixity using Fixity to parse Haskell-style operators