Skip to content

Commit 3b41a98

Browse files
committed
Fix the liquid haskell reporting
1 parent 4ec8a13 commit 3b41a98

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,9 @@ runIdeGhcM plugins mlf stateVar f = do
347347

348348
-- | A computation that is deferred until the module is cached.
349349
-- 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
352351
type IdeDeferM = FreeT Defer IdeM
353352

354-
{-
355-
data IdeDeferM a = Defer FilePath (UriCacheResult -> IdeDeferM a)
356-
| IdeLeaf (IdeM a)
357-
deriving Functor
358-
-}
359-
360353
type IdeM = ReaderT IdeEnv (MultiThreadState IdeState)
361354

362355
-- | Run an IdeM

src/Haskell/Ide/Engine/Plugin/Liquid.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Haskell.Ide.Engine.Plugin.Liquid where
88
--import Control.Concurrent.Async
99
import Control.Monad
1010
import Control.Monad.IO.Class
11+
import Control.Monad.Trans.Class
1112
import Control.Exception (bracket)
1213
#if __GLASGOW_HASKELL__ < 804
1314
import Data.Monoid
@@ -122,8 +123,7 @@ diagnosticProvider DiagnosticOnSave uri cb = pluginGetFile "Liquid.diagnosticPro
122123
mapM_ (liftIO . cancel) mtid
123124

124125
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)
127127

128128
put (LiquidData (Just tid))
129129

0 commit comments

Comments
 (0)