haskell-src

Support for manipulating Haskell source code

Version on this page:1.0.4@rev:1
LTS Haskell 23.0:1.0.4.1
Stackage Nightly 2024-12-09:1.0.4.1
Latest on Hackage:1.0.4.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:cb6a3a6eeec405cf1beda0a9aac8421d838448df5adce73ba68af5ae01fed235,2026
Depends on 4 packages(full list with versions):
Used by 1 package in lts-21.25(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.

Changes

1.0.4

Andreas Abel, 2022-02-07

  • Add Eq instance for HsModule.

1.0.3.2

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.

1.0.3.1 Revision 5

  • Support happy-1.21.

1.0.3.1 Revision 4

  • Support GHC 9.2 & base-4.16.

1.0.3.1 Revision 3

  • Support GHC 9.0 & base-4.15.

1.0.3.0/1 Revision 2

  • Support happy-1.20.

1.0.3.1

Herbert Valerio Riedel, 2019-11-09

  • Version for GHC 8.8 and 8.10.

1.0.3.0

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.

1.0.2.0

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.