diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2017-12-02 15:46:13 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2017-12-02 15:46:13 +0100 |
commit | 4bfc6b916fcc696a5d82e7cd35713d6eabcb0533 (patch) | |
tree | 416b788d9ffd39edc387edb0f48ab6dcf91634f4 /tests | |
parent | 115d6ceb8553804c8ad1e0b8dd7e3cb929df71f9 (diff) |
compile-test: Add GHC 8.2.2 to Cabal version table
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CompileTest.hs | 7 |
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") |