We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60dac8 commit e46481eCopy full SHA for e46481e
src/Stack/Build/Coverage.hs
@@ -54,7 +54,14 @@ updateTixFile tixSrc pkgId = do
54
let tixDest = outputDir </> pkgIdRel </> filename tixSrc
55
removeFileIfExists tixDest
56
createTree (parent tixDest)
57
- renameFile tixSrc tixDest
+ -- Remove exe modules because they are problematic. This could be revisited if there's a GHC
58
+ -- version that fixes https://ghc.haskell.org/trac/ghc/ticket/1853
59
+ mtix <- readTixOrLog tixSrc
60
+ case mtix of
61
+ Nothing -> $logError $ "Failed to read " <> T.pack (toFilePath tixSrc)
62
+ Just tix -> do
63
+ liftIO $ writeTix (toFilePath tixDest) (removeExeModules tix)
64
+ removeFileIfExists tixSrc
65
66
-- | Get the tix file location, given the name of the file (without extension), and the package
67
-- identifier string.
0 commit comments