Workaround for #340

This commit is contained in:
Daniel Gröber
2014-09-12 03:48:22 +02:00
parent b9890a90ed
commit 1c8d1edb4d
7 changed files with 56 additions and 5 deletions

View File

@@ -31,6 +31,11 @@ spec = do
res <- runID $ checkSyntax ["Baz.hs"]
res `shouldSatisfy` ("Baz.hs:5:1:Warning:" `isPrefixOf`)
it "works with modules using PatternSynonyms" $ do
withDirectory_ "test/data/pattern-synonyms" $ do
res <- runID $ checkSyntax ["B.hs"]
res `shouldSatisfy` ("B.hs:6:9:Warning:" `isPrefixOf`)
it "works with foreign exports" $ do
withDirectory_ "test/data" $ do
res <- runID $ checkSyntax ["ForeignExport.hs"]