@@ -63,7 +63,6 @@ module Haskell.Ide.Engine.PluginsIdeMonads
63
63
, getPlugins
64
64
, withProgress
65
65
, withIndefiniteProgress
66
- , persistVirtualFile
67
66
, persistVirtualFile'
68
67
, getPersistedFile
69
68
, reverseFileMap
@@ -405,12 +404,6 @@ getVirtualFile uri = do
405
404
Just lf -> liftIO $ Core. getVirtualFileFunc lf (toNormalizedUri uri)
406
405
Nothing -> return Nothing
407
406
408
- -- | Persist a virtual file as a temporary file in the filesystem.
409
- -- If the virtual file associated to the given URI does not exist then
410
- -- the FilePath parsed from the URI is returned.
411
- persistVirtualFile :: (MonadIde m , MonadIO m ) => Uri -> m FilePath
412
- persistVirtualFile uri = fromMaybe (error " persist" ) <$> getPersistedFile uri
413
-
414
407
-- | Worker function for persistVirtualFile without monad constraints.
415
408
--
416
409
-- Persist a virtual file as a temporary file in the filesystem.
@@ -490,7 +483,7 @@ withIndefiniteProgress t c f = do
490
483
data IdeState = IdeState
491
484
{ moduleCache :: ! GhcModuleCache
492
485
-- | A queue of requests to be performed once a module is loaded
493
- , requestQueue :: Map. Map FilePath [UriCacheResult -> IdeM () ]
486
+ , requestQueue :: ! ( Map. Map FilePath [UriCacheResult -> IdeM () ])
494
487
, extensibleState :: ! (Map. Map TypeRep Dynamic )
495
488
, ghcSession :: ! (Maybe (IORef HscEnv ))
496
489
}
@@ -536,17 +529,6 @@ instance HasGhcModuleCache IdeM where
536
529
tvar <- lift ask
537
530
atomically $ modifyTVar' tvar (\ st -> st { moduleCache = f (moduleCache st) })
538
531
539
- -- ---------------------------------------------------------------------
540
-
541
- {-
542
- instance GHC.HasDynFlags IdeGhcM where
543
- getDynFlags = GHC.hsc_dflags <$> GHC.getSession
544
-
545
- instance GHC.GhcMonad IdeGhcM where
546
- getSession = GM.unGmlT GM.gmlGetSession
547
- setSession env = GM.unGmlT (GM.gmlSetSession env)
548
- -}
549
-
550
532
-- ---------------------------------------------------------------------
551
533
-- Results
552
534
-- ---------------------------------------------------------------------
0 commit comments