Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
hlints
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Jun 28, 2020
1 parent 00d7d36 commit 23a485f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Development/IDE/Core/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ isHiFileStableRule = define $ \IsHiFileStable f -> do
then pure SourceModified
else do
(fileImports, _) <- use_ GetLocatedImports f
let imports = (fmap artifactFilePath) . snd <$> fileImports
let imports = fmap artifactFilePath . snd <$> fileImports
deps <- uses_ IsHiFileStable (catMaybes imports)
pure $ if all (== SourceUnmodifiedAndStable) deps
then SourceUnmodifiedAndStable
Expand Down
3 changes: 1 addition & 2 deletions test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import Test.Tasty.ExpectedFailure
import Test.Tasty.Ingredients.Rerun
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck
import qualified Data.Text.IO as T

main :: IO ()
main = do
Expand Down Expand Up @@ -2253,7 +2252,7 @@ ifaceTHTest = testCase "iface-th-test" $ withoutStackEnv $ runWithExtraFiles "TH
cdoc <- createDoc cPath "haskell" cSource

-- Change [TH]a from () to Bool
liftIO $ T.writeFile aPath (T.unlines $ init (T.lines aSource) ++ ["th_a = [d| a = False|]"])
liftIO $ writeFileUTF8 aPath (unlines $ init (lines $ T.unpack aSource) ++ ["th_a = [d| a = False|]"])

-- Check that the change propogates to C
changeDoc cdoc [TextDocumentContentChangeEvent Nothing Nothing cSource]
Expand Down

0 comments on commit 23a485f

Please sign in to comment.