File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
hie-plugin-api/Haskell/Ide/Engine
src/Haskell/Ide/Engine/Plugin Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -347,16 +347,9 @@ runIdeGhcM plugins mlf stateVar f = do
347
347
348
348
-- | A computation that is deferred until the module is cached.
349
349
-- Note that the module may not typecheck, in which case 'UriCacheFailed' is passed
350
- data Defer a = Defer FilePath (UriCacheResult -> a )
351
- | DeferAction (IdeM () ) deriving Functor
350
+ data Defer a = Defer FilePath (UriCacheResult -> a ) deriving Functor
352
351
type IdeDeferM = FreeT Defer IdeM
353
352
354
- {-
355
- data IdeDeferM a = Defer FilePath (UriCacheResult -> IdeDeferM a)
356
- | IdeLeaf (IdeM a)
357
- deriving Functor
358
- -}
359
-
360
353
type IdeM = ReaderT IdeEnv (MultiThreadState IdeState )
361
354
362
355
-- | Run an IdeM
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module Haskell.Ide.Engine.Plugin.Liquid where
8
8
-- import Control.Concurrent.Async
9
9
import Control.Monad
10
10
import Control.Monad.IO.Class
11
+ import Control.Monad.Trans.Class
11
12
import Control.Exception (bracket )
12
13
#if __GLASGOW_HASKELL__ < 804
13
14
import Data.Monoid
@@ -122,8 +123,7 @@ diagnosticProvider DiagnosticOnSave uri cb = pluginGetFile "Liquid.diagnosticPro
122
123
mapM_ (liftIO . cancel) mtid
123
124
124
125
let progTitle = " Running Liquid Haskell on " <> T. pack (takeFileName file)
125
- -- tid <- async $ withIndefiniteProgress progTitle $ (liftIO $ generateDiagnosics cb uri file)
126
- tid <- liftIO $ async $ generateDiagnosics cb uri file
126
+ tid <- lift $ async $ withIndefiniteProgress progTitle $ (liftIO $ generateDiagnosics cb uri file)
127
127
128
128
put (LiquidData (Just tid))
129
129
You can’t perform that action at this time.
0 commit comments