haskell-src-exts-util
Helper functions for working with haskell-src-exts trees
https://github.com/pepeiborra/haskell-src-exts-util
LTS Haskell 23.27: | 0.2.5 |
Stackage Nightly 2025-07-12: | 0.2.5 |
Latest on Hackage: | 0.2.5 |
BSD-3-Clause licensedbyNeil Mitchell, Jose Iborra
Maintained by[email protected]
This version can be pinned in stack with:
haskell-src-exts-util-0.2.5@sha256:c782ce1cb01866896b6656774a28bad075d2147067e41875c1c5987e7b93be64,1427
Module documentation for 0.2.5
- Language
- Language.Haskell
- Language.Haskell.Exts
- Language.Haskell
Depends on 7 packages(full list with versions):


haskell-src-exts-util
A small suite of helper functions for working withhaskell-src-exts:
- Free variables
- Bound variables
- Minimal (approximate) rebracketing of AST values such that prettyprint roundtrips.
Acknowledgments
This package extracts some the HSE functions inHLint and generalizes them. The original code was authored over the years by Neil Mitchell and the rest of HLint contributors.
Changes
0.2.5
- (Neil) Make sure to capture variables bound in PFieldPun
- (Neil) Make freeVars on Foo{a} include ‘a’
0.2.4
- Neil fixed the spotting of brackets inside a lambda.
0.2.3
isAtom
is now more complete, thanks to Neil M.
0.2.2
- Improved handling of OverloadedLabel syntax, thanks to Neil M.
- Changed the treatment of multiple function composition in
needParen
.The new treatment is less keen to remove parentheses.Note that this is a change of behavior. - GHC 8.4 compatibility, courtesy of Ryan G. Scott