Skip to content

Commit 9fc2384

Browse files
authored
Merge pull request #5820 from commercialhaskell/ghc-941
2 parents ec1834a + 5e82fef commit 9fc2384

File tree

3 files changed

+234
-5
lines changed

3 files changed

+234
-5
lines changed

src/Stack/Package.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ import Distribution.ModuleName (ModuleName)
4040
import qualified Distribution.ModuleName as Cabal
4141
import Distribution.Package hiding (Package, packageName, packageVersion, PackageIdentifier)
4242
import Distribution.PackageDescription hiding (FlagName)
43+
#if !MIN_VERSION_Cabal(3,8,1)
4344
import Distribution.PackageDescription.Parsec
45+
#endif
4446
import Distribution.Pretty (prettyShow)
4547
import Distribution.Simple.Glob (matchDirFileGlob)
48+
#if MIN_VERSION_Cabal(3,8,1)
49+
import Distribution.Simple.PackageDescription (readHookedBuildInfo)
50+
#endif
4651
import Distribution.System (OS (..), Arch, Platform (..))
4752
import Distribution.Text (display)
4853
import qualified Distribution.Types.CondTree as Cabal

src/Stack/Setup.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ warnUnsupportedCompiler ghcVersion = do
475475
logWarn "For more information, see: https://github.com/commercialhaskell/stack/issues/648"
476476
logWarn ""
477477
pure True
478-
| ghcVersion >= mkVersion [9, 3] -> do
478+
| ghcVersion >= mkVersion [9, 5] -> do
479479
logWarn $
480-
"Stack has not been tested with GHC versions above 9.2, and using " <>
480+
"Stack has not been tested with GHC versions above 9.4, and using " <>
481481
fromString (versionString ghcVersion) <>
482482
", this may fail"
483483
pure True
@@ -502,9 +502,9 @@ warnUnsupportedCompilerCabal cp didWarn = do
502502
logWarn "This invocation will most likely fail."
503503
logWarn "To fix this, either use an older version of Stack or a newer resolver"
504504
logWarn "Acceptable resolvers: lts-3.0/nightly-2015-05-05 or later"
505-
| cabalVersion >= mkVersion [3, 7] ->
505+
| cabalVersion >= mkVersion [3, 9] ->
506506
logWarn $
507-
"Stack has not been tested with Cabal versions above 3.6, but version " <>
507+
"Stack has not been tested with Cabal versions above 3.8, but version " <>
508508
fromString (versionString cabalVersion) <>
509509
" was found, this may fail"
510510
| otherwise -> pure ()
@@ -1471,7 +1471,7 @@ installGHCPosix downloadInfo _ archiveFile archiveType tempDir destDir = do
14711471
-- Data.Map.union provides a left-biased union, so mGccEnv will prevail
14721472
let ghcConfigureEnv =
14731473
fromMaybe Map.empty mGccEnv `Map.union` gdiConfigureEnv downloadInfo
1474-
1474+
14751475
logSticky "Configuring GHC ..."
14761476
runStep "configuring" dir
14771477
ghcConfigureEnv

0 commit comments

Comments
 (0)