aboutsummaryrefslogtreecommitdiff
path: root/tests/CompileTest.hs
diff options
context:
space:
mode:
authorjneira <atreyu.bbb@gmail.com>2020-04-16 15:02:54 +0200
committerDaniel Gröber <dxld@darkboxed.org>2020-05-01 18:46:14 +0200
commit5ae2e4a4c75e314d80f0bde52483653dea9d207a (patch)
tree6ebb6f63334ef7fe2284800bed0355801a76cec3 /tests/CompileTest.hs
parentf8e2e11524934115cef22b933a7e5cb3cb3b0f33 (diff)
Support GHC 8.10
Diffstat (limited to 'tests/CompileTest.hs')
-rw-r--r--tests/CompileTest.hs4
1 files changed, 3 insertions, 1 deletions
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