hindent
hindent copied to clipboard
Replace `haskell-src-exts` with `ghc-lib-parser`
See #587 for the background.
TODOs
- [x] Pass all tests on GHC version 9.2.2
- [ ] Pass all tests on every GHC version tested on CI (Difficult because of the drastic changes of
ghc-lib-parser
) - [ ] Resolve all TODOs and FIXMEs
- [ ] Remove all
undefined
s - [ ] Refactor.
- [ ] Test with existing code, like the original Hindent's one or my source code
- [ ] Test with tab size other than 2
- [ ] Format with Hindent
- [ ] Remove all files that I committed for my development environment
- [ ]
s/return/pure
- [ ] Remove
src/SwitchToGhcLibParserHelper.hs
- [ ] Remove all warnings
- [ ] Run
weeder
- [ ] Run
hlint
- [ ] Export necessary things. During the rewiring, I removed some of them to make rewriting easier.
Problems
- We need to drop the support of GHC 8.2.2 because
ghc-lib-parser
cannot build withbase < 4.11
.
Fixes: #587