Skip to content

Commit

Permalink
Tweak regex to support GHC8's module-not-found error
Browse files Browse the repository at this point in the history
Currently GHC 8.0 has a slightly different error message if it can't
find a `.hi` file. It's not clear yet if and how we're going to change the
message before GHC 8.0 final.
  • Loading branch information
hvr committed Mar 6, 2016
1 parent b345676 commit 9c7131a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/tests/PackageTests/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ tests config = do
assertRegex "error should be in MyLibrary.hs" "^MyLibrary.hs:" r
assertRegex
"error should be \"Could not find module `Text\\.PrettyPrint\""
"Could not find module.*Text\\.PrettyPrint" r
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r

-- This is a control on TargetSpecificDeps1; it should
-- succeed.
Expand All @@ -130,7 +130,7 @@ tests config = do
assertRegex "error should be in lemon.hs" "^lemon.hs:" r
assertRegex
"error should be \"Could not find module `Text\\.PrettyPrint\""
"Could not find module.*Text\\.PrettyPrint" r
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r

-- Test that Paths module is generated and available for executables.
tc "PathsModule/Executable" $ cabal_build []
Expand Down

0 comments on commit 9c7131a

Please sign in to comment.