Support for manipulating Haskell source code

Version on this page:
LTS Haskell 22.26:1.0.4@rev:1
Stackage Nightly 2024-06-22:1.0.4@rev:1
Latest on Hackage:1.0.4@rev:1

See all snapshots haskell-src appears in

BSD-3-Clause licensed by Simon Marlow, Sven Panne and Noel Winstanley
This version can be pinned in stack with:haskell-src-,1458
Depends on 4 packages(full list with versions):
Used by 2 packages in lts-7.24(full list with versions):

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 GHC 7.10 & base-4.8)

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