preprocessor-tools

A framework for extending Haskell's syntax via quick-and-dirty preprocessors

http://www.eecs.harvard.edu/~tov/pubs/haskell-session-types/

Version on this page:1.0.1
LTS Haskell 11.22:1.0.1
Stackage Nightly 2018-03-12:1.0.1
Latest on Hackage:2.0.2

See all snapshots preprocessor-tools appears in

BSD-3-Clause licensed by Jesse A. Tov
Maintained by [email protected]
This version can be pinned in stack with:preprocessor-tools-1.0.1@sha256:061bbe5545e309df17d597bdb48f37e90e01c6828bec7e64ef1cbc910765970c,1682
Depends on 4 packages(full list with versions):
Used by 1 package in lts-8.5(full list with versions):

This library provides a quick-and-dirty (but often effective) method for extending Haskell's syntax using a custom preprocessor. It parses Haskell into a bare-bones AST with just enough knowledge of the syntax to preserve nesting, and then allows transformations on the AST.

See the package ixdopp (http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ixdopp) for an example of how to do this.