on master help sign in
Add note regarding package visibility in ob run
commit8b95873381c0be4c78abf5cc11c7929684d5d274 authorRyan Trinkle <ryan@trinkle.org> dateTue 29 Dec 2020, 18:29 (6 years ago) parent71dd69a
1 file changed+1
lib/command/src/Obelisk/Command/Preprocessor.hs+1
lib/command/src/Obelisk/Command/Preprocessor.hs+1
@@ -59,6 +59,7 @@ writeOutput packageInfo' origPath outPath = withFile outPath WriteMode $ \hOut -
5959 where
6060 hPutTextBuilder h = BU.hPutBuilder h . TL.encodeUtf8Builder . TL.toLazyText
6161
62+--NOTE: We cannot restrict the package set by adding '-package' flags to OPTIONS_GHC, because GHC rejects them there. It seems that we won't be able to properly handle that situation until GHC itself supports loading multiple packages officially in GHCi
6263generateHeader :: FilePath -> CabalPackageInfo -> TL.Builder
6364generateHeader origPath packageInfo =
6465 hsExtensions <> ghcOptions <> lineNumberPragma origPath