Commit 99204fa7 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Fixup: make reexported modules tests build with abstract Version.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent a1f67b8f
......@@ -211,17 +211,17 @@ tests config = do
withPackage "p" $ cabal_install ["--cabal-file", "p.cabal"]
withPackage "q" $ do
cabal_build []
tcs "ReexportedModules" "fail-other" . whenGhcVersion (>= Version [7,9] []) $ do
tcs "ReexportedModules" "fail-other" . whenGhcVersion (>= mkVersion [7,9]) $ do
withPackage "p" $ do
r <- shouldFail $ cabal' "configure" ["--cabal-file", "fail-other.cabal"]
assertOutputContains "Private" r
tcs "ReexportedModules" "fail-ambiguous" . whenGhcVersion (>= Version [7,9] []) $ do
tcs "ReexportedModules" "fail-ambiguous" . whenGhcVersion (>= mkVersion [7,9]) $ do
withPackageDb $ do
withPackage "containers-dupe" $ cabal_install []
withPackage "p" $ do
r <- shouldFail $ cabal' "configure" ["--cabal-file", "fail-ambiguous.cabal"]
assertOutputContains "Data.Map" r
tcs "ReexportedModules" "fail-missing" . whenGhcVersion (>= Version [7,9] []) $ do
tcs "ReexportedModules" "fail-missing" . whenGhcVersion (>= mkVersion [7,9]) $ do
withPackage "p" $ do
r <- shouldFail $ cabal' "configure" ["--cabal-file", "fail-missing.cabal"]
assertOutputContains "Missing" r
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment