Disable lhs MemoryMapped test for now
This commit is contained in:
parent
9a22662031
commit
20d6d4bae7
@ -155,14 +155,15 @@ spec = do
|
||||
mapM_ (uncurry loadMappedFile) fm
|
||||
checkSyntax ["File.lhs"]
|
||||
res `shouldBe` "File.lhs:1:3:Warning: Top-level binding with no type signature: main :: IO ()\n"
|
||||
it "checks in-memory file if one is specified and outputs original filename" $ do
|
||||
withDirectory_ "test/data/file-mapping/lhs" $ do
|
||||
src <- readFile "File_Redir.lhs"
|
||||
let fm = [("File.lhs", MemoryMapping $ Just src)]
|
||||
res <- run defaultOptions $ do
|
||||
mapM_ (uncurry loadMappedFile) fm
|
||||
checkSyntax ["File.lhs"]
|
||||
res `shouldBe` "File.lhs:1:3:Warning: Top-level binding with no type signature: main :: IO ()\n"
|
||||
-- NOTE: GHC can't 'unliterate' a file in-memory, so this won't work
|
||||
-- it "checks in-memory file if one is specified and outputs original filename" $ do
|
||||
-- withDirectory_ "test/data/file-mapping/lhs" $ do
|
||||
-- src <- readFile "File_Redir.lhs"
|
||||
-- let fm = [("File.lhs", MemoryMapping $ Just src)]
|
||||
-- res <- run defaultOptions $ do
|
||||
-- mapM_ (uncurry loadMappedFile) fm
|
||||
-- checkSyntax ["File.lhs"]
|
||||
-- res `shouldBe` "File.lhs:1:3:Warning: Top-level binding with no type signature: main :: IO ()\n"
|
||||
-- NOTE: There is a bug in hlint that prevents it from linting lhs files.
|
||||
-- it "lints redirected file if one is specified and outputs original filename" $ do
|
||||
-- withDirectory_ "test/data/file-mapping/lhs" $ do
|
||||
|
Loading…
Reference in New Issue
Block a user