hindent icon indicating copy to clipboard operation
hindent copied to clipboard

Replace `haskell-src-exts` with `ghc-lib-parser`

Open toku-sa-n opened this issue 2 years ago • 0 comments

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 undefineds
  • [ ] 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 with base < 4.11.

Fixes: #587

toku-sa-n avatar Sep 06 '22 23:09 toku-sa-n