alanz / ghc-exactprint

GHC version of haskell-src-exts exactPrint
BSD 3-Clause "New" or "Revised" License
70 stars 32 forks source link

GHC 8.6 compatibility? #69

Closed ulysses4ever closed 5 years ago

ulysses4ever commented 6 years ago

I have

$ cabal --version
cabal-install version 2.2.0.0
compiled using version 2.2.0.1 of the Cabal library 
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.0.20180907

(courtesy HVR's PPA) When cloning the source and doing cabal new-build I get

src/Language/Haskell/GHC/ExactPrint/Parsers.hs:305:3: error:
    • Could not deduce (Control.Monad.Fail.MonadFail m)
        arising from a do statement
        with the failable pattern ‘(dflags3, [], [])’
...

Am I doing something wrong?

alanz commented 6 years ago

Nope. It is compatible with the prior beta (alpha?) of GHC 8.6, when the beta landed it had the monad fail proposal enabled, and it broke again.

I have not managed to fix it yet, there are a bunch of changes needed in ghc-mod first.

qrilka commented 5 years ago

@alanz isn't it fixed already?

ulysses4ever commented 5 years ago

Indeed, it works for me now. Thanks, @qrilka!