egison-pattern-src-haskell-mode-0.1.0.0: Parser and pretty printer for Egison pattern expressions in Haskell source code

Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Egison.Pretty.Pattern.Mode.Haskell

Contents

Description

A printer for Egison pattern expressions in Haskell source code.

Synopsis

Printers

type Expr = Expr (QName ()) (Name ()) (Exp ()) Source #

Type synonym of Expr to be printed with Haskell's source code.

prettyExpr :: MonadError (Error (QName ())) m => Style -> PPHsMode -> Expr -> m Text Source #

Print Expr using Style and PPHsMode from haskell-src-exts.

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

Print Expr using Style and PPHsMode from haskell-src-exts, while supplying an explicit list of Fixity.

Converting haskell-src-exts's entities

type PrintMode = PrintMode (QName ()) (Name ()) (Exp ()) Source #

Type synonym of PrintMode to print Expr.

type PrintFixity = PrintFixity (QName ()) Source #

Type synonym of PrintFixity to print Expr.

type Fixity = Fixity (QName ()) Source #

Type synonym of Fixity to print Expr.

makePageMode :: Style -> PageMode Source #

Build PageMode using Style from haskell-src-exts.

makeHaskellMode :: Style -> PPHsMode -> [Fixity] -> PrintMode Source #

Build PrintMode using Style and PPHsMode from haskell-src-exts, and the list of fixities.

makePrintFixity :: Fixity -> PrintFixity Source #

Build PrintFixity using Fixity to print Haskell operators.