1 import Test
.Cabal
.Prelude
2 -- Test "new build-dep behavior", where each target gets
3 -- separate dependencies. This tests that an library
4 -- dep does not leak into the executable.
5 main
= setupAndCabalTest
$ do
7 r
<- fails
$ setup
' "build" []
8 assertRegex
"error should be in lemon.hs" "^lemon.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