1 import Test
.Cabal
.Prelude
2 -- Test "new build-dep behavior", where each target gets
3 -- separate dependencies. This tests that an executable
4 -- dep does not leak into the library.
5 main
= setupAndCabalTest
$ do
7 r
<- fails
$ setup
' "build" []
8 assertRegex
"error should be in MyLibrary.hs" "^MyLibrary.hs:" r
10 "error should be \"Could not find module `Text\\.PrettyPrint\""
11 "(Could not (load|find) module|Failed to load interface for).*Text\\.PrettyPrint" r