@hackage / haskell-exp-parser

Simple parser parser from Haskell to TemplateHaskell expressions

Latest0.1.4

About

Metadata

  • Last updated , by EmilAxelsson
  • License BSD-3-Clause
  • Maintained by: 78emil@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

This package defines a simple parser for a subset of Haskell expressions and patterns to the TemplateHaskell AST.

It provides a very lightweight alternative to the functions parseExp and parsePat from http://hackage.haskell.org/package/haskell-src-meta.

The following expressions are currently supported:

  • Variables

  • Integer and string literals

  • Prefix function application

  • Lists and tuples

The following patterns are currently supported:

  • Variables