From 50917f8cbe715bc3924a3f021e9f74386f61d0b2 Mon Sep 17 00:00:00 2001 From: Alex Lang Date: Sun, 10 Jul 2016 21:01:13 -0700 Subject: [PATCH] Fix the slow checking issue in interactive mode --- Language/Haskell/GhcMod/Target.hs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Language/Haskell/GhcMod/Target.hs b/Language/Haskell/GhcMod/Target.hs index bd41fd4..30b461b 100644 --- a/Language/Haskell/GhcMod/Target.hs +++ b/Language/Haskell/GhcMod/Target.hs @@ -462,7 +462,6 @@ loadTargets opts targetStrs = do let interp = needsHscInterpreted mg target <- hscTarget <$> getSessionDynFlags when (interp && target /= HscInterpreted) $ do - resetTargets targets _ <- setSessionDynFlags . setHscInterpreted =<< getSessionDynFlags gmLog GmInfo "loadTargets" $ text "Target needs interpeter, switching to LinkInMemory/HscInterpreted. Perfectly normal if anything is using TemplateHaskell, QuasiQuotes or PatternSynonyms." @@ -488,11 +487,6 @@ loadTargets opts targetStrs = do return $ Target tid taoc src relativize tgt = return tgt - resetTargets targets' = do - setTargets [] - void $ load LoadAllTargets - setTargets targets' - showTargetId (Target (TargetModule s) _ _) = moduleNameString s showTargetId (Target (TargetFile s _) _ _) = s