Support for manipulating Haskell source code

Version on this page:
LTS Haskell 12.22:
Stackage Nightly 2018-12-13:
Latest on Hackage:

See all snapshots haskell-src appears in

BSD3 licensed by Simon Marlow, Sven Panne and Noel Winstanley

The haskell-src package provides support for manipulating Haskell source code. The package provides a lexer, parser and pretty-printer, and a definition of a Haskell abstract syntax tree (AST). Common uses of this package are to parse or generate Haskell 98 code


  • Add support for MonadFail & Semigroup proposals by adding respective instances for P and Lex.

  • Drop support for GHC versions prior to GHC 7.0.

  • Remove -O2 from ghc-options.

  • Add support for GHC 7.10 & base-4.8)

  • Add missing Functor & Applicative instances for P and Lex monads needed for AMP compatibility.

comments powered byDisqus