egison-pattern-src-0.2.1.2: Manipulating Egison patterns: abstract syntax, parser, and pretty-printer
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Egison.Pretty.Pattern

Contents

Description

A pretty printer for Egison patterns.

Synopsis

Documentation

prettyExpr :: (MonadError (Error n) m, Ord n) => PrintMode n v e -> Expr n v e -> m Text Source #

Pretty print Expr.

Re-exports

newtype Error n Source #

A pretty printer error.

Constructors

UnknownInfixOperator n 

Instances

Instances details
Show n => Show (Error n) Source # 
Instance details

Defined in Language.Egison.Pretty.Pattern.Error

Methods

showsPrec :: Int -> Error n -> ShowS #

show :: Error n -> String #

showList :: [Error n] -> ShowS #

Eq n => Eq (Error n) Source # 
Instance details

Defined in Language.Egison.Pretty.Pattern.Error

Methods

(==) :: Error n -> Error n -> Bool #

(/=) :: Error n -> Error n -> Bool #

data PageMode Source #

Rendering style configuration.

Constructors

PageMode 

data PrintMode n v e Source #

Printer configuration.

type ExtPrinter a = a -> Text Source #

ExtPrinter a is a type for externally provided printer of a.

data PrintFixity n Source #

Fixity of infix operators.

Constructors

PrintFixity 

Fields