You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- temporarily, in case the compiler wants to learn this information via the
787
787
-- filesystem, and returns any environment variable overrides the compiler
788
788
-- needs.
789
-
createPackageEnvironment
789
+
--
790
+
-- The function returns both the arguments you need to pass to the compiler and
791
+
-- the environment variables you need to set.
792
+
createPackageEnvironmentAndArgs
790
793
::Verbosity
791
794
->FilePath
792
795
->ElaboratedInstallPlan
793
796
->ElaboratedSharedConfig
794
797
->PostBuildProjectStatus
795
-
->IO[(String, MaybeString)]
796
-
createPackageEnvironment
798
+
->IO([String], [(String, MaybeString)])
799
+
createPackageEnvironmentAndArgs
797
800
verbosity
798
801
path
799
802
elaboratedPlan
@@ -808,14 +811,14 @@ createPackageEnvironment
808
811
elaboratedShared
809
812
buildStatus
810
813
case envFileM of
811
-
Just envFile ->return[("GHC_ENVIRONMENT", Just envFile)]
814
+
Just envFile ->return(["-package-env="++ envFile], [("GHC_ENVIRONMENT", Just envFile)])
812
815
Nothing->do
813
816
warn verbosity "the configured version of GHC does not support reading package lists from the environment; commands that need the current project's package database are likely to fail"
814
-
return[]
817
+
return([], [])
815
818
|otherwise=
816
819
do
817
820
warn verbosity "package environment configuration is not supported for the currently configured compiler; commands that need the current project's package database are likely to fail"
0 commit comments