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

Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Egison.Parser.Pattern.Mode.Haskell

Contents

Description

A parser for Egison pattern expressions in Haskell source code.

Synopsis

Parsers

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

Type synonym of Expr to be parsed in Haskell's source code.

type ExprL = ExprL (QName ()) (Name ()) (Exp SrcSpanInfo) Source #

Type synonym of ExprL to be parsed in Haskell's source code.

data ParseMode Source #

Parser configuration in egison-pattern-src-haskell-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 (QName ()) (Name ()) (Exp SrcSpanInfo) String Source #

Build ParseMode using ParseMode from haskell-src-exts.

makeFixity :: Fixity -> Fixity (QName ()) Source #

Build Fixity using Fixity from haskell-src-exts.

makeParseFixity :: Fixity (QName ()) -> Maybe (ParseFixity (QName ()) String) Source #

Build ParseFixity using Fixity to parse Haskell-style operators