-
Notifications
You must be signed in to change notification settings - Fork 175
Conversation
57b1be1
to
e50639d
Compare
This fails to build on GHC 8.0.1:
|
where | ||
zipMap f l = l `zip` (f `map` l) | ||
|
||
explicitOpts :: Cradle -> GhcModT m [String] | ||
explicitOpts Cradle {..} = case cradleCabalFile of | ||
Nothing -> return [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain what you're doing here? Looking at what explicitCradle
above it seems that when the project type is ExplicitCradle """cradleCabalFile"""
would always be: cradleCabalFile = Just optionsFile
which seems like a horrible misnomer in its own right ;)
Also maybe you could put the optionsFile in the ExplicitProject constructor like we do with the StackEnv stuff?
Those binary |
out <- liftIO $ readProc ghcMod ["--verbose", "error", "dumpsym"] "" | ||
return $!! decode out | ||
ts <- liftIO getCurrentModTime | ||
st <- runGmPkgGhc getGlobalSymbolTable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no good, there is a reason we do this in another process (memory usage). Please revert.
@lierdakil this PR doesn't even touch Gap, wtf? |
It's probably just needs rebasing on current master =\ |
bench/data/simple-cabal/*.hs | ||
test/data/options-cradle/ghc-mod.options | ||
test/data/options-cradle/ghc-mod.package-db-stack | ||
test/data/options-cradle/package-db-a/package.cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so you don't want to check in package.cache into repo, since it's ghc-specific binary format which can (and will) change, and your tests will fail for no good reason with something like
GHC.PackageDb.readPackageDb: inappropriate type (not a ghc-pkg db file, wrong file magic number)
ETIMEDOUT, closing. Feel free to reopen if you still want to work on this. |
This is continued from #585. We've added some tests and travis runs now succeed.