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