diff options
author | M Farkas-Dyck <strake888@proton.me> | 2022-08-27 09:02:53 -0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-09-14 22:39:34 -0400 |
commit | bdd61cd63dff07a78b1364988b5a140806f79e38 (patch) | |
tree | 8d43f207c45466c0df05d5e5710d9f82564d8a60 /hadrian | |
parent | 534b39ee5c6d0c4f9dc279adcf5a11423279efb8 (diff) | |
download | haskell-bdd61cd63dff07a78b1364988b5a140806f79e38.tar.gz |
Unbreak Hadrian with Cabal 3.8.
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/src/Hadrian/Haskell/Cabal/Parse.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Hadrian/Haskell/Cabal/Parse.hs b/hadrian/src/Hadrian/Haskell/Cabal/Parse.hs index 048c66c802..8cff6729bf 100644 --- a/hadrian/src/Hadrian/Haskell/Cabal/Parse.hs +++ b/hadrian/src/Hadrian/Haskell/Cabal/Parse.hs @@ -23,7 +23,11 @@ import qualified Distribution.ModuleName as C import qualified Distribution.Package as C import qualified Distribution.PackageDescription as C import qualified Distribution.PackageDescription.Configuration as C +#if MIN_VERSION_Cabal(3,8,0) +import qualified Distribution.Simple.PackageDescription as C +#else import qualified Distribution.PackageDescription.Parsec as C +#endif import qualified Distribution.Simple.Compiler as C import qualified Distribution.Simple.Program.Db as C import qualified Distribution.Simple as C |