@hackage haskell-src-exts0.3.2

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer

Haskell-Source with Extensions (HSE, haskell-src-exts) is an extension of the standard haskell-src package, and handles most common syntactic extensions to Haskell, including:

  • Multi-parameter type classes with functional dependencies

  • Indexed type families (including associated types)

  • Empty data declarations

  • GADTs

  • Implicit parameters (ghc and hugs style)

  • Template Haskell (broken for 6.4+, needs redoing)

and a few more. Apart from these standard extensions, it also handles regular patterns as per the HaRP extension as well as HSX-style embedded XML syntax (new HSP/HSX release imminent).

For details on usage, please see the website.