Support for manipulating Haskell source code

Version on this page:1.0.4
LTS Haskell 22.18:1.0.4@rev:1
Stackage Nightly 2024-04-24: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
Maintained by Andreas Abel
This version can be pinned in stack with:haskell-src-1.0.4@sha256:f7fe1c8195e03fecbb4cfa1a121fe06f02e7366b4ebb629343b07ab33e9333f5,1808
Depends on 4 packages(full list with versions):
Used by 1 package in lts-18.28(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.



Andreas Abel, 2022-02-07

  • Add Eq instance for HsModule.

Andreas Abel, 2022-02-07

  • Version tested with GHC 7.0 - 9.2.
  • Silence warning incomplete-uni-patterns in module ParseMonad for GHC >= 9.2.
  • Cosmetic documentation changes. Revision 5

  • Support happy-1.21. Revision 4

  • Support GHC 9.2 & base-4.16. Revision 3

  • Support GHC 9.0 & base-4.15. Revision 2

  • Support happy-1.20.

Herbert Valerio Riedel, 2019-11-09

  • Version for GHC 8.8 and 8.10.

Herbert Valerio Riedel, 2018-03-13

  • Version for GHC 7.10 - 8.6. (Dropped support for GHC versions prior to GHC 7.0.)

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

  • Remove -O2 from ghc-options.

Herbert Valerio Riedel, 2015-01-24

  • Add support for GHC 7.10 & base-4.8.

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