1 import Test
.Cabal
.Prelude
3 import qualified Data
.Char as Char
4 main
= setupAndCabalTest
$ do
5 skipUnlessGhcVersion
">= 8.1"
6 ghc
<- isGhcVersion
"== 9.0.2 || == 9.2.*"
7 expectBrokenIf ghc
7987 $
9 containers_id
<- getIPID
"containers"
10 withDirectory
"repo/sigs-0.1.0.0" $ setup_install_with_docs
["--ipid", "sigs-0.1.0.0"]
11 withDirectory
"repo/indef-0.1.0.0" $ setup_install_with_docs
["--ipid", "indef-0.1.0.0"]
12 withDirectory
"repo/sigs-0.1.0.0" $ do
13 -- NB: this REUSES the dist directory that we typechecked
14 -- indefinitely, but it's OK; the recompile checker should get it.
15 setup_install_with_docs
["--ipid", "sigs-0.1.0.0",
16 "--instantiate-with", "Data.Map=" ++ containers_id
++ ":Data.Map"]
17 withDirectory
"repo/indef-0.1.0.0" $ do
19 setup_install_with_docs
["--ipid", "indef-0.1.0.0",
20 "--instantiate-with", "Data.Map=" ++ containers_id
++ ":Data.Map"]
21 withDirectory
"repo/exe-0.1.0.0" $ do
23 runExe
' "exe" [] >>= assertOutputContains
"fromList [(0,2),(2,4)]"