ghc-lib-parser-ex: Algorithms on GHC parse trees

[ bsd3, development, library ] [ Propose Tags ]

Please see the README on GitHub at

[Skip to Readme]
Versions [faq] 0.20200102, 0.20200201, 0.20200201.1.0, 0.20200205.0.0, 0.20200301, 0.20200401, 0.20200501, 0.20200601, 0.20200704, 0.20200801, 0.20200901,, 8.8.2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies base (>=4.7 && <5), bytestring (>=, ghc (==8.8.*), ghc-boot-th, ghc-lib-parser, uniplate (>=1.5) [details]
License BSD-3-Clause
Copyright Copyright © 2020, Shayne Fletcher. All rights reserved.
Author Shayne Fletcher
Category Development
Home page
Bug tracker
Source repo head: git clone
Uploaded by shayne_fletcher at 2020-01-18T21:16:12Z
Distributions Arch:, Fedora:, NixOS:, openSUSE:
Downloads 15588 total (1017 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-01-18 [all 1 reports]


[Index] [Quick Jump]



Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for ghc-lib-parser-ex-8.8.2

[back to package description]

ghc-lib-parser-ex Build Status

Copyright © 2020, Shayne Fletcher. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

The ghc-lib-parser-ex package contains GHC API parse tree utilities. It works with or without ghc-lib-parser.

Using ghc-lib-parser-ex

The package ghc-lib-parser-ex is available on Hackage e.g. cabal install ghc-lib-parser-ex. There are two release streams within the ghc-lib-parser-ex name (tracking released ghc-lib-parser versions exactly):

  • Version 8.10.1 will be the ghc-lib-parser-ex for use against ghc-lib-parser-8.10.1(or the released GHC 8.10.1);
  • Version 0.20190204 is for use against ghc-lib-parser-0.20190204.

Building ghc-lib-parser-ex

You can build with stack build and test with stack test. You can also produce ghc-lib-parser-ex package distributions by executing the CI script (which incidentally builds everything and runs the tests).

# Setup
git clone
cd ghc-lib-parser-ex
stack runhaskell --package extra --package optparse-applicative CI.hs

Run stack runhaskell --package extra --package optparse-applicative CI.hs -- --help for more configurability options.

Releasing ghc-lib (notes for maintainers)

Build ghc-lib-parser-ex using the above instructions and upload the resulting .tar.gz files to Hackage.