Open snoyberg opened 8 years ago
Can you link me to or post the rest of the log output? Or alternatively how do I reproduce stackage's build environment?
Sorry, that log file is no longer present. Reproducing the Stackage build environment is pretty tricky. Perhaps the relevant bit for those error message is that it passes in a --libexecdir flag.
Why do you think it has to do with --libexecdir
?
Maybe a bad guess based on the error message coming from readCreateProcess.
cabal-helper-wrapper failing could have a number of reasons. If the executable wasn't there then the error code would be something like 127 (at least on linux IIRC) so I don't think it's that. All the other failure modes would print stuff on stderr which gets interleaved with the hspec output above the summary you copied out so I really do need the rest of the log to be able to say what's going on.
Sorry, I can't provide that log right now. It's your call if you want to close this issue or leave it open.
Can you catch it on the next stackage build or something?
I'll try to, yes. It may take another few days, since Adam's on curator duty till next week
On Fri, Sep 18, 2015, 6:30 AM Daniel Gröber notifications@github.com wrote:
Can you catch it on the next stackage build or something?
— Reply to this email directly or view it on GitHub https://github.com/kazu-yamamoto/ghc-mod/issues/611#issuecomment-141333860 .
Ok great, thanks.
Better late than never I tried it again, new errors now:
> /tmp/stackage-build8/ghc-mod-5.6.0.0$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup configure --enable-tests --package-db=clear --package-db=global --package-db=/var/stackage/work/builds/nightly/pkgdb --libdir=/var/stackage/work/builds/nightly/lib --bindir=/var/stackage/work/builds/nightly/bin --datadir=/var/stackage/work/builds/nightly/share --libexecdir=/var/stackage/work/builds/nightly/libexec --sysconfdir=/var/stackage/work/builds/nightly/etc --docdir=/var/stackage/work/builds/nightly/doc/ghc-mod-5.6.0.0 --htmldir=/var/stackage/work/builds/nightly/doc/ghc-mod-5.6.0.0 --haddockdir=/var/stackage/work/builds/nightly/doc/ghc-mod-5.6.0.0 --flags=
SetupCompat.hs:144:38: warning: [-Wdeprecations]
In the use of type constructor or class ‘InstalledPackageId’
(imported from Distribution.Simple, but defined in Distribution.Package):
Deprecated: "Use UnitId instead"
SetupCompat.hs:180:36: warning: [-Wdeprecations]
In the use of type constructor or class ‘InstalledPackageId’
(imported from Distribution.Simple, but defined in Distribution.Package):
Deprecated: "Use UnitId instead"
Configuring ghc-mod-5.6.0.0...
> /tmp/stackage-build8/ghc-mod-5.6.0.0$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup build
SetupCompat.hs:144:38: warning: [-Wdeprecations]
In the use of type constructor or class ‘InstalledPackageId’
(imported from Distribution.Simple, but defined in Distribution.Package):
Deprecated: "Use UnitId instead"
SetupCompat.hs:180:36: warning: [-Wdeprecations]
In the use of type constructor or class ‘InstalledPackageId’
(imported from Distribution.Simple, but defined in Distribution.Package):
Deprecated: "Use UnitId instead"
Building ghc-mod-5.6.0.0...
Preprocessing library ghc-mod-5.6.0.0...
[ 1 of 59] Compiling System.Directory.ModTime ( System/Directory/ModTime.hs, dist/build/System/Directory/ModTime.o )
[ 2 of 59] Compiling Paths_ghc_mod ( dist/build/autogen/Paths_ghc_mod.hs, dist/build/Paths_ghc_mod.o )
[ 3 of 59] Compiling Language.Haskell.GhcMod.Options.Help ( Language/Haskell/GhcMod/Options/Help.hs, dist/build/Language/Haskell/GhcMod/Options/Help.o )
[ 4 of 59] Compiling Language.Haskell.GhcMod.Options.DocUtils ( Language/Haskell/GhcMod/Options/DocUtils.hs, dist/build/Language/Haskell/GhcMod/Options/DocUtils.o )
[ 5 of 59] Compiling Language.Haskell.GhcMod.Read ( Language/Haskell/GhcMod/Read.hs, dist/build/Language/Haskell/GhcMod/Read.o )
[ 6 of 59] Compiling Language.Haskell.GhcMod.DynFlagsTH ( Language/Haskell/GhcMod/DynFlagsTH.hs, dist/build/Language/Haskell/GhcMod/DynFlagsTH.o )
[ 7 of 59] Compiling Utils ( Utils.hs, dist/build/Utils.o )
[ 8 of 59] Compiling Language.Haskell.GhcMod.Caching.Types ( Language/Haskell/GhcMod/Caching/Types.hs, dist/build/Language/Haskell/GhcMod/Caching/Types.o )
[ 9 of 59] Compiling Data.Binary.Generic ( Data/Binary/Generic.hs, dist/build/Data/Binary/Generic.o )
[10 of 59] Compiling Language.Haskell.GhcMod.Types ( Language/Haskell/GhcMod/Types.hs, dist/build/Language/Haskell/GhcMod/Types.o )
[11 of 59] Compiling Language.Haskell.GhcMod.Gap ( Language/Haskell/GhcMod/Gap.hs, dist/build/Language/Haskell/GhcMod/Gap.o )
[12 of 59] Compiling Language.Haskell.GhcMod.Doc ( Language/Haskell/GhcMod/Doc.hs, dist/build/Language/Haskell/GhcMod/Doc.o )
[13 of 59] Compiling Language.Haskell.GhcMod.SrcUtils ( Language/Haskell/GhcMod/SrcUtils.hs, dist/build/Language/Haskell/GhcMod/SrcUtils.o )
[14 of 59] Compiling Language.Haskell.GhcMod.Monad.Newtypes ( Language/Haskell/GhcMod/Monad/Newtypes.hs, dist/build/Language/Haskell/GhcMod/Monad/Newtypes.o )
[15 of 59] Compiling Language.Haskell.GhcMod.Monad.Env ( Language/Haskell/GhcMod/Monad/Env.hs, dist/build/Language/Haskell/GhcMod/Monad/Env.o )
[16 of 59] Compiling Language.Haskell.GhcMod.Monad.Log ( Language/Haskell/GhcMod/Monad/Log.hs, dist/build/Language/Haskell/GhcMod/Monad/Log.o )
[17 of 59] Compiling Language.Haskell.GhcMod.Monad.Orphans ( Language/Haskell/GhcMod/Monad/Orphans.hs, dist/build/Language/Haskell/GhcMod/Monad/Orphans.o )
[18 of 59] Compiling Language.Haskell.GhcMod.Monad.Out ( Language/Haskell/GhcMod/Monad/Out.hs, dist/build/Language/Haskell/GhcMod/Monad/Out.o )
[19 of 59] Compiling Language.Haskell.GhcMod.Monad.State ( Language/Haskell/GhcMod/Monad/State.hs, dist/build/Language/Haskell/GhcMod/Monad/State.o )
[20 of 59] Compiling Language.Haskell.GhcMod.Monad.Types ( Language/Haskell/GhcMod/Monad/Types.hs, dist/build/Language/Haskell/GhcMod/Monad/Types.o )
Language/Haskell/GhcMod/Monad/Types.hs:119:1: warning: [-Wredundant-constraints]
• Redundant constraint: MonadBaseControl IO m
• In the type signature for:
gmlGetSession :: (MonadIO m, MonadBaseControl IO m) =>
GmlT m HscEnv
Language/Haskell/GhcMod/Monad/Types.hs:125:1: warning: [-Wredundant-constraints]
• Redundant constraint: MonadBaseControl IO m
• In the type signature for:
gmlSetSession :: (MonadIO m, MonadBaseControl IO m) =>
HscEnv -> GmlT m ()
[21 of 59] Compiling Language.Haskell.GhcMod.Convert ( Language/Haskell/GhcMod/Convert.hs, dist/build/Language/Haskell/GhcMod/Convert.o )
[22 of 59] Compiling Language.Haskell.GhcMod.Output ( Language/Haskell/GhcMod/Output.hs, dist/build/Language/Haskell/GhcMod/Output.o )
[23 of 59] Compiling Language.Haskell.GhcMod.Pretty ( Language/Haskell/GhcMod/Pretty.hs, dist/build/Language/Haskell/GhcMod/Pretty.o )
[24 of 59] Compiling Language.Haskell.GhcMod.Error ( Language/Haskell/GhcMod/Error.hs, dist/build/Language/Haskell/GhcMod/Error.o )
Language/Haskell/GhcMod/Error.hs:154:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
gcatchesHandler :: (MonadIO m, ExceptionMonad m) =>
[GHandler m a] -> SomeException -> m a
[25 of 59] Compiling Language.Haskell.GhcMod.DebugLogger ( Language/Haskell/GhcMod/DebugLogger.hs, dist/build/Language/Haskell/GhcMod/DebugLogger.o )
[26 of 59] Compiling Language.Haskell.GhcMod.DynFlags ( Language/Haskell/GhcMod/DynFlags.hs, dist/build/Language/Haskell/GhcMod/DynFlags.o )
[27 of 59] Compiling Language.Haskell.GhcMod.LightGhc ( Language/Haskell/GhcMod/LightGhc.hs, dist/build/Language/Haskell/GhcMod/LightGhc.o )
[28 of 59] Compiling Language.Haskell.GhcMod.Logging ( Language/Haskell/GhcMod/Logging.hs, dist/build/Language/Haskell/GhcMod/Logging.o )
[29 of 59] Compiling Language.Haskell.GhcMod.Caching ( Language/Haskell/GhcMod/Caching.hs, dist/build/Language/Haskell/GhcMod/Caching.o )
Language/Haskell/GhcMod/Caching.hs:46:1: warning: [-Wredundant-constraints]
• Redundant constraint: Show d
• In the type signature for:
cached :: (Gm m, MonadIO m, Binary a, Eq d, Binary d, Show d) =>
FilePath -> Cached m GhcModState d a -> d -> m a
[30 of 59] Compiling Language.Haskell.GhcMod.Utils ( Language/Haskell/GhcMod/Utils.hs, dist/build/Language/Haskell/GhcMod/Utils.o )
Language/Haskell/GhcMod/Utils.hs:144:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
readLibExecProcess' :: (MonadIO m, ExceptionMonad m) =>
String -> [String] -> m String
Language/Haskell/GhcMod/Utils.hs:186:1: warning: [-Wredundant-constraints]
• Redundant constraint: Functor m
• In the type signature for:
mkRevRedirMapFunc :: (Functor m, GmState m, GmEnv m) =>
m (FilePath -> FilePath)
[31 of 59] Compiling Language.Haskell.GhcMod.Logger ( Language/Haskell/GhcMod/Logger.hs, dist/build/Language/Haskell/GhcMod/Logger.o )
[32 of 59] Compiling Language.Haskell.GhcMod.HomeModuleGraph ( Language/Haskell/GhcMod/HomeModuleGraph.hs, dist/build/Language/Haskell/GhcMod/HomeModuleGraph.o )
[33 of 59] Compiling Language.Haskell.GhcMod.FileMapping ( Language/Haskell/GhcMod/FileMapping.hs, dist/build/Language/Haskell/GhcMod/FileMapping.o )
[34 of 59] Compiling Language.Haskell.GhcMod.PathsAndFiles ( Language/Haskell/GhcMod/PathsAndFiles.hs, dist/build/Language/Haskell/GhcMod/PathsAndFiles.o )
[35 of 59] Compiling Language.Haskell.GhcMod.CustomPackageDb ( Language/Haskell/GhcMod/CustomPackageDb.hs, dist/build/Language/Haskell/GhcMod/CustomPackageDb.o )
[36 of 59] Compiling Language.Haskell.GhcMod.Stack ( Language/Haskell/GhcMod/Stack.hs, dist/build/Language/Haskell/GhcMod/Stack.o )
Language/Haskell/GhcMod/Stack.hs:41:1: warning: [-Wredundant-constraints]
• Redundant constraint: GmOut m
• In the type signature for:
patchStackPrograms :: (IOish m, GmOut m) =>
Cradle -> Programs -> m Programs
[37 of 59] Compiling Language.Haskell.GhcMod.CabalHelper ( Language/Haskell/GhcMod/CabalHelper.hs, dist/build/Language/Haskell/GhcMod/CabalHelper.o )
Language/Haskell/GhcMod/CabalHelper.hs:57:1: warning: [-Wredundant-constraints]
• Redundant constraint: Applicative m
• In the type signature for:
getGhcMergedPkgOptions :: (Applicative m, IOish m, Gm m) =>
m [GHCOption]
[38 of 59] Compiling Language.Haskell.GhcMod.Cradle ( Language/Haskell/GhcMod/Cradle.hs, dist/build/Language/Haskell/GhcMod/Cradle.o )
[39 of 59] Compiling Language.Haskell.GhcMod.GhcPkg ( Language/Haskell/GhcMod/GhcPkg.hs, dist/build/Language/Haskell/GhcMod/GhcPkg.o )
[40 of 59] Compiling Language.Haskell.GhcMod.Target ( Language/Haskell/GhcMod/Target.hs, dist/build/Language/Haskell/GhcMod/Target.o )
Language/Haskell/GhcMod/Target.hs:293:1: warning: [-Wredundant-constraints]
• Redundant constraint: Applicative m
• In the type signature for:
packageGhcOptions :: (IOish m, Applicative m, Gm m) =>
m [GHCOption]
[41 of 59] Compiling Language.Haskell.GhcMod.Monad ( Language/Haskell/GhcMod/Monad.hs, dist/build/Language/Haskell/GhcMod/Monad.o )
[42 of 59] Compiling Language.Haskell.GhcMod.Browse ( Language/Haskell/GhcMod/Browse.hs, dist/build/Language/Haskell/GhcMod/Browse.o )
Language/Haskell/GhcMod/Browse.hs:86:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
processExports :: (GhcMonad m, MonadIO m, ExceptionMonad m) =>
BrowseOpts -> ModuleInfo -> m [String]
[43 of 59] Compiling Language.Haskell.GhcMod.CaseSplit ( Language/Haskell/GhcMod/CaseSplit.hs, dist/build/Language/Haskell/GhcMod/CaseSplit.o )
Language/Haskell/GhcMod/CaseSplit.hs:210:1: warning: [-Wredundant-constraints]
• Redundant constraint: GhcMonad m
• In the type signature for:
genCaseSplitTextFile :: (MonadIO m, GhcMonad m) =>
FilePath -> SplitToTextInfo -> m String
[44 of 59] Compiling Language.Haskell.GhcMod.Check ( Language/Haskell/GhcMod/Check.hs, dist/build/Language/Haskell/GhcMod/Check.o )
[45 of 59] Compiling Language.Haskell.GhcMod.FillSig ( Language/Haskell/GhcMod/FillSig.hs, dist/build/Language/Haskell/GhcMod/FillSig.o )
Language/Haskell/GhcMod/FillSig.hs:183:1: warning: [-Wredundant-constraints]
• Redundant constraint: GhcMonad m
• In the type signature for:
getSignatureFromHE :: (MonadIO m, GhcMonad m) =>
FilePath -> Int -> Int -> m (Maybe HESigInfo)
[46 of 59] Compiling Language.Haskell.GhcMod.Flag ( Language/Haskell/GhcMod/Flag.hs, dist/build/Language/Haskell/GhcMod/Flag.o )
[47 of 59] Compiling Language.Haskell.GhcMod.Info ( Language/Haskell/GhcMod/Info.hs, dist/build/Language/Haskell/GhcMod/Info.o )
[48 of 59] Compiling Language.Haskell.GhcMod.Lang ( Language/Haskell/GhcMod/Lang.hs, dist/build/Language/Haskell/GhcMod/Lang.o )
[49 of 59] Compiling Language.Haskell.GhcMod.Lint ( Language/Haskell/GhcMod/Lint.hs, dist/build/Language/Haskell/GhcMod/Lint.o )
[50 of 59] Compiling Language.Haskell.GhcMod.Modules ( Language/Haskell/GhcMod/Modules.hs, dist/build/Language/Haskell/GhcMod/Modules.o )
[51 of 59] Compiling Language.Haskell.GhcMod.Boot ( Language/Haskell/GhcMod/Boot.hs, dist/build/Language/Haskell/GhcMod/Boot.o )
[52 of 59] Compiling Language.Haskell.GhcMod.PkgDoc ( Language/Haskell/GhcMod/PkgDoc.hs, dist/build/Language/Haskell/GhcMod/PkgDoc.o )
[53 of 59] Compiling Language.Haskell.GhcMod.Test ( Language/Haskell/GhcMod/Test.hs, dist/build/Language/Haskell/GhcMod/Test.o )
[54 of 59] Compiling Language.Haskell.GhcMod.World ( Language/Haskell/GhcMod/World.hs, dist/build/Language/Haskell/GhcMod/World.o )
[55 of 59] Compiling Language.Haskell.GhcMod.Internal ( Language/Haskell/GhcMod/Internal.hs, dist/build/Language/Haskell/GhcMod/Internal.o )
[56 of 59] Compiling Language.Haskell.GhcMod.Debug ( Language/Haskell/GhcMod/Debug.hs, dist/build/Language/Haskell/GhcMod/Debug.o )
[57 of 59] Compiling Language.Haskell.GhcMod.Find ( Language/Haskell/GhcMod/Find.hs, dist/build/Language/Haskell/GhcMod/Find.o )
[58 of 59] Compiling Language.Haskell.GhcMod ( Language/Haskell/GhcMod.hs, dist/build/Language/Haskell/GhcMod.o )
[59 of 59] Compiling Language.Haskell.GhcMod.Options.Options ( Language/Haskell/GhcMod/Options/Options.hs, dist/build/Language/Haskell/GhcMod/Options/Options.o )
Preprocessing executable 'ghc-mod' for ghc-mod-5.6.0.0...
[1 of 6] Compiling GHCMod.Options.ShellParse ( src/GHCMod/Options/ShellParse.hs, dist/build/ghc-mod/ghc-mod-tmp/GHCMod/Options/ShellParse.o )
[2 of 6] Compiling GHCMod.Options.Commands ( src/GHCMod/Options/Commands.hs, dist/build/ghc-mod/ghc-mod-tmp/GHCMod/Options/Commands.o )
[3 of 6] Compiling Paths_ghc_mod ( dist/build/autogen/Paths_ghc_mod.hs, dist/build/ghc-mod/ghc-mod-tmp/Paths_ghc_mod.o )
[4 of 6] Compiling GHCMod.Version ( src/GHCMod/Version.hs, dist/build/ghc-mod/ghc-mod-tmp/GHCMod/Version.o )
[5 of 6] Compiling GHCMod.Options ( src/GHCMod/Options.hs, dist/build/ghc-mod/ghc-mod-tmp/GHCMod/Options.o )
[6 of 6] Compiling Main ( src/GHCMod.hs, dist/build/ghc-mod/ghc-mod-tmp/Main.o )
Linking dist/build/ghc-mod/ghc-mod ...
Preprocessing executable 'ghc-modi' for ghc-mod-5.6.0.0...
[1 of 4] Compiling System.Directory.ModTime ( System/Directory/ModTime.hs, dist/build/ghc-modi/ghc-modi-tmp/System/Directory/ModTime.o )
[2 of 4] Compiling Paths_ghc_mod ( dist/build/autogen/Paths_ghc_mod.hs, dist/build/ghc-modi/ghc-modi-tmp/Paths_ghc_mod.o )
[3 of 4] Compiling Utils ( Utils.hs, dist/build/ghc-modi/ghc-modi-tmp/Utils.o )
[4 of 4] Compiling Main ( src/GHCModi.hs, dist/build/ghc-modi/ghc-modi-tmp/Main.o )
Linking dist/build/ghc-modi/ghc-modi ...
Preprocessing test suite 'doctest' for ghc-mod-5.6.0.0...
[1 of 1] Compiling Main ( test/doctests.hs, dist/build/doctest/doctest-tmp/Main.o )
Linking dist/build/doctest/doctest ...
Preprocessing test suite 'spec' for ghc-mod-5.6.0.0...
[ 1 of 73] Compiling GHCMod.Options.ShellParse ( src/GHCMod/Options/ShellParse.hs, dist/build/spec/spec-tmp/GHCMod/Options/ShellParse.o )
[ 2 of 73] Compiling ShellParseSpec ( test/ShellParseSpec.hs, dist/build/spec/spec-tmp/ShellParseSpec.o )
[ 3 of 73] Compiling Dir ( test/Dir.hs, dist/build/spec/spec-tmp/Dir.o )
[ 4 of 73] Compiling System.Directory.ModTime ( System/Directory/ModTime.hs, dist/build/spec/spec-tmp/System/Directory/ModTime.o )
[ 5 of 73] Compiling Paths_ghc_mod ( dist/build/autogen/Paths_ghc_mod.hs, dist/build/spec/spec-tmp/Paths_ghc_mod.o )
[ 6 of 73] Compiling Language.Haskell.GhcMod.DynFlagsTH ( Language/Haskell/GhcMod/DynFlagsTH.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/DynFlagsTH.o )
[ 7 of 73] Compiling Utils ( Utils.hs, dist/build/spec/spec-tmp/Utils.o )
[ 8 of 73] Compiling Language.Haskell.GhcMod.Caching.Types ( Language/Haskell/GhcMod/Caching/Types.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Caching/Types.o )
[ 9 of 73] Compiling Data.Binary.Generic ( Data/Binary/Generic.hs, dist/build/spec/spec-tmp/Data/Binary/Generic.o )
[10 of 73] Compiling Language.Haskell.GhcMod.Types ( Language/Haskell/GhcMod/Types.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Types.o )
[11 of 73] Compiling Language.Haskell.GhcMod.Gap ( Language/Haskell/GhcMod/Gap.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Gap.o )
[12 of 73] Compiling Language.Haskell.GhcMod.Doc ( Language/Haskell/GhcMod/Doc.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Doc.o )
[13 of 73] Compiling Language.Haskell.GhcMod.SrcUtils ( Language/Haskell/GhcMod/SrcUtils.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/SrcUtils.o )
[14 of 73] Compiling Language.Haskell.GhcMod.Monad.Newtypes ( Language/Haskell/GhcMod/Monad/Newtypes.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Newtypes.o )
[15 of 73] Compiling Language.Haskell.GhcMod.Monad.Env ( Language/Haskell/GhcMod/Monad/Env.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Env.o )
[16 of 73] Compiling Language.Haskell.GhcMod.Monad.Log ( Language/Haskell/GhcMod/Monad/Log.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Log.o )
[17 of 73] Compiling Language.Haskell.GhcMod.Monad.Orphans ( Language/Haskell/GhcMod/Monad/Orphans.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Orphans.o )
[18 of 73] Compiling Language.Haskell.GhcMod.Monad.Out ( Language/Haskell/GhcMod/Monad/Out.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Out.o )
[19 of 73] Compiling Language.Haskell.GhcMod.Monad.State ( Language/Haskell/GhcMod/Monad/State.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/State.o )
[20 of 73] Compiling Language.Haskell.GhcMod.Monad.Types ( Language/Haskell/GhcMod/Monad/Types.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad/Types.o )
Language/Haskell/GhcMod/Monad/Types.hs:119:1: warning: [-Wredundant-constraints]
• Redundant constraint: MonadBaseControl IO m
• In the type signature for:
gmlGetSession :: (MonadIO m, MonadBaseControl IO m) =>
GmlT m HscEnv
Language/Haskell/GhcMod/Monad/Types.hs:125:1: warning: [-Wredundant-constraints]
• Redundant constraint: MonadBaseControl IO m
• In the type signature for:
gmlSetSession :: (MonadIO m, MonadBaseControl IO m) =>
HscEnv -> GmlT m ()
[21 of 73] Compiling Language.Haskell.GhcMod.Convert ( Language/Haskell/GhcMod/Convert.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Convert.o )
[22 of 73] Compiling Language.Haskell.GhcMod.Output ( Language/Haskell/GhcMod/Output.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Output.o )
[23 of 73] Compiling Language.Haskell.GhcMod.Pretty ( Language/Haskell/GhcMod/Pretty.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Pretty.o )
[24 of 73] Compiling Language.Haskell.GhcMod.Error ( Language/Haskell/GhcMod/Error.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Error.o )
Language/Haskell/GhcMod/Error.hs:154:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
gcatchesHandler :: (MonadIO m, ExceptionMonad m) =>
[GHandler m a] -> SomeException -> m a
[25 of 73] Compiling Language.Haskell.GhcMod.DebugLogger ( Language/Haskell/GhcMod/DebugLogger.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/DebugLogger.o )
[26 of 73] Compiling Language.Haskell.GhcMod.DynFlags ( Language/Haskell/GhcMod/DynFlags.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/DynFlags.o )
[27 of 73] Compiling Language.Haskell.GhcMod.LightGhc ( Language/Haskell/GhcMod/LightGhc.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/LightGhc.o )
[28 of 73] Compiling Language.Haskell.GhcMod.Logging ( Language/Haskell/GhcMod/Logging.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Logging.o )
[29 of 73] Compiling Language.Haskell.GhcMod.Caching ( Language/Haskell/GhcMod/Caching.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Caching.o )
Language/Haskell/GhcMod/Caching.hs:46:1: warning: [-Wredundant-constraints]
• Redundant constraint: Show d
• In the type signature for:
cached :: (Gm m, MonadIO m, Binary a, Eq d, Binary d, Show d) =>
FilePath -> Cached m GhcModState d a -> d -> m a
[30 of 73] Compiling Language.Haskell.GhcMod.Utils ( Language/Haskell/GhcMod/Utils.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Utils.o )
Language/Haskell/GhcMod/Utils.hs:144:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
readLibExecProcess' :: (MonadIO m, ExceptionMonad m) =>
String -> [String] -> m String
Language/Haskell/GhcMod/Utils.hs:186:1: warning: [-Wredundant-constraints]
• Redundant constraint: Functor m
• In the type signature for:
mkRevRedirMapFunc :: (Functor m, GmState m, GmEnv m) =>
m (FilePath -> FilePath)
[31 of 73] Compiling Language.Haskell.GhcMod.Logger ( Language/Haskell/GhcMod/Logger.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Logger.o )
[32 of 73] Compiling Language.Haskell.GhcMod.HomeModuleGraph ( Language/Haskell/GhcMod/HomeModuleGraph.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/HomeModuleGraph.o )
[33 of 73] Compiling Language.Haskell.GhcMod.FileMapping ( Language/Haskell/GhcMod/FileMapping.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/FileMapping.o )
[34 of 73] Compiling Language.Haskell.GhcMod.PathsAndFiles ( Language/Haskell/GhcMod/PathsAndFiles.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/PathsAndFiles.o )
[35 of 73] Compiling Language.Haskell.GhcMod.CustomPackageDb ( Language/Haskell/GhcMod/CustomPackageDb.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/CustomPackageDb.o )
[36 of 73] Compiling Language.Haskell.GhcMod.Stack ( Language/Haskell/GhcMod/Stack.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Stack.o )
Language/Haskell/GhcMod/Stack.hs:41:1: warning: [-Wredundant-constraints]
• Redundant constraint: GmOut m
• In the type signature for:
patchStackPrograms :: (IOish m, GmOut m) =>
Cradle -> Programs -> m Programs
[37 of 73] Compiling Language.Haskell.GhcMod.CabalHelper ( Language/Haskell/GhcMod/CabalHelper.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/CabalHelper.o )
Language/Haskell/GhcMod/CabalHelper.hs:57:1: warning: [-Wredundant-constraints]
• Redundant constraint: Applicative m
• In the type signature for:
getGhcMergedPkgOptions :: (Applicative m, IOish m, Gm m) =>
m [GHCOption]
[38 of 73] Compiling Language.Haskell.GhcMod.Cradle ( Language/Haskell/GhcMod/Cradle.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Cradle.o )
[39 of 73] Compiling Language.Haskell.GhcMod.GhcPkg ( Language/Haskell/GhcMod/GhcPkg.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/GhcPkg.o )
[40 of 73] Compiling Language.Haskell.GhcMod.Target ( Language/Haskell/GhcMod/Target.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Target.o )
Language/Haskell/GhcMod/Target.hs:293:1: warning: [-Wredundant-constraints]
• Redundant constraint: Applicative m
• In the type signature for:
packageGhcOptions :: (IOish m, Applicative m, Gm m) =>
m [GHCOption]
[41 of 73] Compiling Language.Haskell.GhcMod.Monad ( Language/Haskell/GhcMod/Monad.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Monad.o )
[42 of 73] Compiling Language.Haskell.GhcMod.Browse ( Language/Haskell/GhcMod/Browse.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Browse.o )
Language/Haskell/GhcMod/Browse.hs:86:1: warning: [-Wredundant-constraints]
• Redundant constraint: ExceptionMonad m
• In the type signature for:
processExports :: (GhcMonad m, MonadIO m, ExceptionMonad m) =>
BrowseOpts -> ModuleInfo -> m [String]
[43 of 73] Compiling Language.Haskell.GhcMod.CaseSplit ( Language/Haskell/GhcMod/CaseSplit.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/CaseSplit.o )
Language/Haskell/GhcMod/CaseSplit.hs:210:1: warning: [-Wredundant-constraints]
• Redundant constraint: GhcMonad m
• In the type signature for:
genCaseSplitTextFile :: (MonadIO m, GhcMonad m) =>
FilePath -> SplitToTextInfo -> m String
[44 of 73] Compiling Language.Haskell.GhcMod.Check ( Language/Haskell/GhcMod/Check.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Check.o )
[45 of 73] Compiling Language.Haskell.GhcMod.FillSig ( Language/Haskell/GhcMod/FillSig.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/FillSig.o )
Language/Haskell/GhcMod/FillSig.hs:183:1: warning: [-Wredundant-constraints]
• Redundant constraint: GhcMonad m
• In the type signature for:
getSignatureFromHE :: (MonadIO m, GhcMonad m) =>
FilePath -> Int -> Int -> m (Maybe HESigInfo)
[46 of 73] Compiling Language.Haskell.GhcMod.Flag ( Language/Haskell/GhcMod/Flag.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Flag.o )
[47 of 73] Compiling Language.Haskell.GhcMod.Info ( Language/Haskell/GhcMod/Info.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Info.o )
[48 of 73] Compiling Language.Haskell.GhcMod.Lang ( Language/Haskell/GhcMod/Lang.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Lang.o )
[49 of 73] Compiling Language.Haskell.GhcMod.Lint ( Language/Haskell/GhcMod/Lint.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Lint.o )
[50 of 73] Compiling Language.Haskell.GhcMod.Modules ( Language/Haskell/GhcMod/Modules.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Modules.o )
[51 of 73] Compiling Language.Haskell.GhcMod.Boot ( Language/Haskell/GhcMod/Boot.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Boot.o )
[52 of 73] Compiling Language.Haskell.GhcMod.PkgDoc ( Language/Haskell/GhcMod/PkgDoc.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/PkgDoc.o )
[53 of 73] Compiling Language.Haskell.GhcMod.Test ( Language/Haskell/GhcMod/Test.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Test.o )
[54 of 73] Compiling Language.Haskell.GhcMod.World ( Language/Haskell/GhcMod/World.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/World.o )
[55 of 73] Compiling Language.Haskell.GhcMod.Internal ( Language/Haskell/GhcMod/Internal.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Internal.o )
[56 of 73] Compiling Language.Haskell.GhcMod.Debug ( Language/Haskell/GhcMod/Debug.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Debug.o )
[57 of 73] Compiling Language.Haskell.GhcMod.Find ( Language/Haskell/GhcMod/Find.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod/Find.o )
[58 of 73] Compiling Language.Haskell.GhcMod ( Language/Haskell/GhcMod.hs, dist/build/spec/spec-tmp/Language/Haskell/GhcMod.o )
[59 of 73] Compiling TestUtils ( test/TestUtils.hs, dist/build/spec/spec-tmp/TestUtils.o )
[60 of 73] Compiling BrowseSpec ( test/BrowseSpec.hs, dist/build/spec/spec-tmp/BrowseSpec.o )
[61 of 73] Compiling CheckSpec ( test/CheckSpec.hs, dist/build/spec/spec-tmp/CheckSpec.o )
[62 of 73] Compiling CustomPackageDbSpec ( test/CustomPackageDbSpec.hs, dist/build/spec/spec-tmp/CustomPackageDbSpec.o )
[63 of 73] Compiling FileMappingSpec ( test/FileMappingSpec.hs, dist/build/spec/spec-tmp/FileMappingSpec.o )
[64 of 73] Compiling FlagSpec ( test/FlagSpec.hs, dist/build/spec/spec-tmp/FlagSpec.o )
[65 of 73] Compiling HomeModuleGraphSpec ( test/HomeModuleGraphSpec.hs, dist/build/spec/spec-tmp/HomeModuleGraphSpec.o )
test/HomeModuleGraphSpec.hs:49:1: warning: [-Wredundant-constraints]
• Redundant constraint: Ord k
• In the type signature for:
mapMap :: (Ord k, Ord k') =>
(k -> k') -> (a -> a') -> Map.Map k a -> Map.Map k' a'
[66 of 73] Compiling InfoSpec ( test/InfoSpec.hs, dist/build/spec/spec-tmp/InfoSpec.o )
[67 of 73] Compiling LangSpec ( test/LangSpec.hs, dist/build/spec/spec-tmp/LangSpec.o )
[68 of 73] Compiling LintSpec ( test/LintSpec.hs, dist/build/spec/spec-tmp/LintSpec.o )
[69 of 73] Compiling ListSpec ( test/ListSpec.hs, dist/build/spec/spec-tmp/ListSpec.o )
[70 of 73] Compiling MonadSpec ( test/MonadSpec.hs, dist/build/spec/spec-tmp/MonadSpec.o )
test/MonadSpec.hs:26:11: warning: [-Wunused-matches]
Defined but not used: ‘mv_startup_barrier’
test/MonadSpec.hs:28:11: warning: [-Wname-shadowing]
This binding for ‘mv_startup_barrier’ shadows the existing binding
bound at test/MonadSpec.hs:26:11
[71 of 73] Compiling PathsAndFilesSpec ( test/PathsAndFilesSpec.hs, dist/build/spec/spec-tmp/PathsAndFilesSpec.o )
[72 of 73] Compiling Spec ( test/Spec.hs, dist/build/spec/spec-tmp/Spec.o )
[73 of 73] Compiling Main ( test/Main.hs, dist/build/spec/spec-tmp/Main.o )
Linking dist/build/spec/spec ...
> /tmp/stackage-build8/ghc-mod-5.6.0.0$ dist/build/doctest/doctest
Language/Haskell/GhcMod/Monad/Newtypes.hs:33:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Error’ is deprecated:
Use Control.Monad.Except instead
Language/Haskell/GhcMod/Monad/Newtypes.hs:60:19: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Newtypes.hs:147:18: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Env.hs:28:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Error’ is deprecated:
Use Control.Monad.Except instead
Language/Haskell/GhcMod/Monad/Env.hs:63:28: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Log.hs:29:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Error’ is deprecated:
Use Control.Monad.Except instead
Language/Haskell/GhcMod/Monad/Log.hs:60:29: warning: [-Wdeprecations]
In the use of type constructor or class ‘Error’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Log.hs:60:48: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Orphans.hs:37:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Error’ is deprecated:
Use Control.Monad.Except instead
Language/Haskell/GhcMod/Monad/Orphans.hs:70:11: warning: [-Wdeprecations]
In the use of type constructor or class ‘Error’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Monad/Orphans.hs:70:43: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Error, but defined in Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
Language/Haskell/GhcMod/Error.hs:46:1: error:
Ambiguous interface for ‘Panic’:
it was found in multiple packages: protolude-0.1.7 ghc-8.0.1
The only real error I can see is:
Language/Haskell/GhcMod/Error.hs:46:1: error:
Ambiguous interface for ‘Panic’:
it was found in multiple packages: protolude-0.1.7 ghc-8.0.1
which I've never seen before. Isn't having colliding module names in a package-db a big no-no anyways? I guess Stackage shouldn't include packages that have colliding names or something?
@DanielG I forgot to paste this link here: https://github.com/bergmark/blog/blob/master/2016/package-faq.md#ambiguous-modules-when-using-doctest
and there's also the oldest open ticket on the stackage issue tracker :) https://github.com/fpco/stackage/issues/416