From 4bfc6b916fcc696a5d82e7cd35713d6eabcb0533 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sat, 2 Dec 2017 15:46:13 +0100 Subject: compile-test: Add GHC 8.2.2 to Cabal version table --- tests/CompileTest.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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") -- cgit v1.2.3