haskell-exp-parser-0.1.1: Simple parser parser from Haskell to TemplateHaskell expressions

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.ParseExp

Description

Simple parser for a subset of Haskell expressions and patterns to the TemplateHaskell AST

The following expressions are currently supported:

  • Variables
  • Integer and string literals
  • Prefix function application
  • Lists and tuples

The following patterns are currently supported:

  • Variables

Synopsis

Documentation

parseExp :: String -> Either String Exp Source

Parse a Haskell expression (the supported subset is given above)

parsePat :: String -> Either String Pat Source

Parse a Haskell pattern (the supported subset is given above)