apply-refact icon indicating copy to clipboard operation
apply-refact copied to clipboard

Use ghc-lib to support a range of GHC versions

Open arybczak opened this issue 5 years ago • 4 comments

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.

arybczak avatar May 11 '20 18:05 arybczak

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

zliu41 avatar Jun 06 '20 01:06 zliu41

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.

ndmitchell avatar Sep 12 '20 15:09 ndmitchell

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.

zliu41 avatar Sep 13 '20 07:09 zliu41

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

arybczak avatar Nov 29 '21 08:11 arybczak