diff --git a/Cabal/Distribution/Simple/GHC.hs b/Cabal/Distribution/Simple/GHC.hs index 39929bd02a82ea50d0e00994cf36936a2ae17654..07e2f49392147e7b54845b6ccdc0fad699b87967 100644 --- a/Cabal/Distribution/Simple/GHC.hs +++ b/Cabal/Distribution/Simple/GHC.hs @@ -131,6 +131,13 @@ configure verbosity hcPath hcPkgPath conf0 = do (userMaybeSpecifyPath "ghc" hcPath conf0) let implInfo = ghcVersionImplInfo ghcVersion + -- Cabal 2.0 supports ghc >= 6.11 && < 8.3 + unless (ghcVersion < mkVersion [8,3]) $ + warn verbosity $ + "Unknown/unsupported 'ghc' version detected " + ++ "(Cabal " ++ display cabalVersion ++ " supports 'ghc' version < 8.3): " + ++ programPath ghcProg ++ " is version " ++ display ghcVersion + -- This is slightly tricky, we have to configure ghc first, then we use the -- location of ghc to help find ghc-pkg in the case that the user did not -- specify the location of ghc-pkg directly: diff --git a/cabal.project.travis b/cabal.project.travis index aaf38aefc5d218dc87e4e34a4f3f86e6c7536443..a83b299cff001ffbc9c5203bb0239261a4bcc547 100644 --- a/cabal.project.travis +++ b/cabal.project.travis @@ -16,6 +16,7 @@ allow-newer: hackage-repo-tool:Cabal, hackage-repo-tool:time, hackage-repo-tool: -- build properly (unfortunately the flags here get applied -- to the dependencies too!) package Cabal + tests: True ghc-options: -Werror -fno-warn-orphans package cabal-install