From 5ae2e4a4c75e314d80f0bde52483653dea9d207a Mon Sep 17 00:00:00 2001 From: jneira Date: Thu, 16 Apr 2020 15:02:54 +0200 Subject: Support GHC 8.10 --- tests/CompileTest.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/CompileTest.hs') diff --git a/tests/CompileTest.hs b/tests/CompileTest.hs index 77698c5..8f79868 100644 --- a/tests/CompileTest.hs +++ b/tests/CompileTest.hs @@ -100,7 +100,8 @@ allCabalVersions (GhcVersion ghc_ver) = do <- map parseVer . lines <$> readFile "tests/cabal-versions" let constraint :: VersionRange - Just constraint = + constraint = + fromMaybe (error $ "No cabal version constraint found for " ++ show ghc_ver) $ fmap snd $ find (and . (zipWith (==) `on` versionBranch) ghc_ver . fst) $ constraint_table @@ -116,6 +117,7 @@ allCabalVersions (GhcVersion ghc_ver) = do , ("8.4", ">= 2.0.0.2 ") , ("8.6", ">= 2.0.0.2 ") , ("8.8", ">= 3.0.0.0 ") + , ("8.10", ">= 3.2.0.0 ") ] return $ reverse $ map (flip withinRange'CH constraint &&& id) cabal_versions -- cgit v1.2.3