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 a1987c8 commit dd6a6bcCopy full SHA for dd6a6bc
src/Stack/Ghci.hs
@@ -490,7 +490,7 @@ preprocessCabalMacros pkgs out = liftIO $ do
490
let fps = nubOrd (concatMap (mapMaybe (bioCabalMacros . snd) . ghciPkgOpts) pkgs)
491
files <- mapM (S8.readFile . toFilePath) fps
492
if null files then return [] else do
493
- S8.writeFile (toFilePath out) $ S8.intercalate "\n#undef CURRENT_PACKAGE_KEY\n" files
+ S8.writeFile (toFilePath out) $ S8.concat $ map (<> "\n#undef CURRENT_PACKAGE_KEY\n") files
494
return ["-optP-include", "-optP" <> toFilePath out]
495
496
setScriptPerms :: MonadIO m => FilePath -> m ()
0 commit comments