mpickering / apply-refact

Refactor Haskell source files
BSD 3-Clause "New" or "Revised" License
147 stars 29 forks source link

Use ghc-lib to support a range of GHC versions #57

Open arybczak opened 4 years ago

arybczak commented 4 years ago

Did you try to make it work?

Simply changing ghc dependency to ghc-lib doesn't work because of ghc-exactprint type mismatches, so presumably ghc-exactprint would also need to use ghc-lib.

zliu41 commented 4 years ago

Yeah, I don't see how apply-refact can migrate to ghc-lib unless ghc-exactprint migrates first.

ndmitchell commented 4 years ago

ghc-exactprint would definitely need to migrate (or offer the option) first.

If ghc-exactprint and apply-refact were on matching versions of ghc-lib, I'd be slightly tempted to wonder if we could link in apply-refact as a library into HLint.

zliu41 commented 4 years ago

Sounds good; I raised https://github.com/alanz/ghc-exactprint/issues/93. Not sure how much work it is; I may have some time to work on it, but my time available for open source work over the next few months will be very limited.

arybczak commented 2 years ago

Will that be possible with 9.2 now that ghc-exactprint was integrated into GHC?