@@ -63,7 +63,6 @@ module Haskell.Ide.Engine.PluginsIdeMonads
6363 , getPlugins
6464 , withProgress
6565 , withIndefiniteProgress
66- , persistVirtualFile
6766 , persistVirtualFile'
6867 , getPersistedFile
6968 , reverseFileMap
@@ -405,12 +404,6 @@ getVirtualFile uri = do
405404 Just lf -> liftIO $ Core. getVirtualFileFunc lf (toNormalizedUri uri)
406405 Nothing -> return Nothing
407406
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-
414407-- | Worker function for persistVirtualFile without monad constraints.
415408--
416409-- Persist a virtual file as a temporary file in the filesystem.
@@ -490,7 +483,7 @@ withIndefiniteProgress t c f = do
490483data IdeState = IdeState
491484 { moduleCache :: ! GhcModuleCache
492485 -- | 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 () ])
494487 , extensibleState :: ! (Map. Map TypeRep Dynamic )
495488 , ghcSession :: ! (Maybe (IORef HscEnv ))
496489 }
@@ -536,17 +529,6 @@ instance HasGhcModuleCache IdeM where
536529 tvar <- lift ask
537530 atomically $ modifyTVar' tvar (\ st -> st { moduleCache = f (moduleCache st) })
538531
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-
550532-- ---------------------------------------------------------------------
551533-- Results
552534-- ---------------------------------------------------------------------
0 commit comments