haskell-src

Support for manipulating Haskell source code

LTS Haskell 22.43:1.0.4.1
Stackage Nightly 2024-11-25: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.1@sha256:b650b0b6396df19b0b4b346c4235f059343744317504534974eee1342659683d,1955
Depends on 4 packages(full list with versions):
Used by 1 package in nightly-2024-11-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.1

Andreas Abel, 2024-09-22

  • Replace use of head to pacify -Wx-partial.
  • Remove upper bound on happy.
  • Tested with GHC 8.0 - 9.10.1.

1.0.4 Revision 1

Andreas Abel, 2022-05-25

  • Support GHC 9.4, allow base-4.17 and higher.

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.