1 import Test
.Cabal
.Prelude
3 -- Test “repl --build-depends”
5 testWithByteString
"normal" []
6 -- See https://github.com/haskell/cabal/issues/6859
7 testWithByteString
"allow-newer" ["--allow-newer"]
8 -- See https://github.com/haskell/cabal/issues/6859
9 testWithByteString
"allow-older" ["--allow-older"]
11 testWithByteString label extraArgs
= cabalTest
' label
$ do
15 ("-v2" : "--build-depends" : "bytestring" : extraArgs
)
16 "import qualified Data.ByteString as BS"
17 assertOutputContains
"Ok, one module loaded." res
18 -- Ensure we can load ‘bytestring’
19 assertOutputDoesNotContain
"Could not load" res