@hackage ghc-lib-parser-ex8.8.2
Algorithms on GHC parse trees
Categories
License
BSD-3-Clause
Maintainer
shayne@shaynefletcher.org
Links
Versions
Installation
Dependencies (6)
- base >=4.7 && <5
- bytestring >=0.10.8.2
- ghc >=8.8 && <8.9
- ghc-boot-th
- ghc-lib-parser
- uniplate >=1.5 Show all…
Dependents (7)
@hackage/hls-hlint-plugin, @hackage/hlint, @hackage/hindent, @hackage/fix-imports, @hackage/haskell-language-server, @hackage/stylish-haskell, Show all…
Package Flags
ghc-lib
(off by default)
Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
ghc-lib-parser-ex 
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-exfor use againstghc-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 git@github.com:shayne-fletcher/ghc-lib-parser-ex.git
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.