aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-12-02 15:46:13 +0100
committerDaniel Gröber <dxld@darkboxed.org>2017-12-02 15:46:13 +0100
commit4bfc6b916fcc696a5d82e7cd35713d6eabcb0533 (patch)
tree416b788d9ffd39edc387edb0f48ab6dcf91634f4
parent115d6ceb8553804c8ad1e0b8dd7e3cb929df71f9 (diff)
compile-test: Add GHC 8.2.2 to Cabal version table
-rw-r--r--tests/CompileTest.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/CompileTest.hs b/tests/CompileTest.hs
index 0cbb044..50cf555 100644
--- a/tests/CompileTest.hs
+++ b/tests/CompileTest.hs
@@ -82,8 +82,13 @@ main = do
ghc_ver <- ghcVersion defaultOptions
let constraint :: VersionRange
- Just (_, constraint) =
+ constraint =
+ fromMaybe (snd $ last constraint_table) $
+ fmap snd $
find (and . (zipWith (==) `on` versionBranch) ghc_ver . fst) $
+ constraint_table
+
+ constraint_table =
map (parseVer *** runReadP'Dist parse) $
[ ("7.4" , ">= 1.14 && < 2")
, ("7.6" , ">= 1.16 && < 2")