Merge branch 'develop' into aa/static-filepath
commitdc8656c92d5c2b3193a6a471ee12f343058e7b32
authorAli Abrar <aliabrar@gmail.com>
dateTue 29 Dec 2020, 19:12 (6 years ago)
parent937a0d38b95873
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