ghc-mod
ghc-mod copied to clipboard
[ghc 7.8rc1] Fails to build ghc-mod - Not in scope: "showDocWith"
Starting from a fresh cabal sandbox, I issued:
$ cabal install ghc-mod
I got this near the end:
Building ghc-mod-3.1.5...
Preprocessing library ghc-mod-3.1.5...
[ 1 of 18] Compiling Language.Haskell.GhcMod.GHCChoice ( Language/Haskell/GhcMod/GHCChoice.hs, dist/dist-sandbox-7da305cc/build/Language/Haskell/GhcMod/GHCChoice.o )
[ 2 of 18] Compiling Language.Haskell.GhcMod.Types ( Language/Haskell/GhcMod/Types.hs, dist/dist-sandbox-7da305cc/build/Language/Haskell/GhcMod/Types.o )
[ 3 of 18] Compiling Language.Haskell.GhcMod.CabalApi ( Language/Haskell/GhcMod/CabalApi.hs, dist/dist-sandbox-7da305cc/build/Language/Haskell/GhcMod/CabalApi.o )
[ 4 of 18] Compiling Language.Haskell.GhcMod.Gap ( Language/Haskell/GhcMod/Gap.hs, dist/dist-sandbox-7da305cc/build/Language/Haskell/GhcMod/Gap.o )
[ 5 of 18] Compiling Language.Haskell.GhcMod.Doc ( Language/Haskell/GhcMod/Doc.hs, dist/dist-sandbox-7da305cc/build/Language/Haskell/GhcMod/Doc.o )
Language/Haskell/GhcMod/Doc.hs:30:27: Not in scope: ‛showDocWith’
Language/Haskell/GhcMod/Doc.hs:34:29:
Not in scope: ‛Pretty.showDocWith’
Perhaps you meant ‛Pretty.showDoc’ (imported from Pretty)
Language/Haskell/GhcMod/Doc.hs:39:30: Not in scope: ‛showDocWith’
Language/Haskell/GhcMod/Doc.hs:43:32: Not in scope: ‛showDocWith’
Failed to install ghc-mod-3.1.5
In my environment, I can install ghc-mod without any problems. Thanks to travis CI, ghc-mod is tested with multiple versions of GHC.
- Q1: Which version of GHC are you using?
- Q2: Does the same thing happen if you try to install ghc-mod 3.1.6?
Nicely done with TravisCI. I didn't realize Haskell support was so thorough in Travis. :)
Q1: ghc --version -> version 7.8.20140130
Q2: No. I just verified. I was pulling down version 3.1.5 from Hackage. I updated, compiled 3.1.6, and all is well. I also downloaded the 3.1.6 tarball release on here to make sure all was well.
Verdict: close this bug. ghc-mod-3.1.6 compiles with GHC 7.8.20140130.
Thanks!