Skip to content

Commit eba4763

Browse files
committed
reuse only Successful values from the store
1 parent aa725bf commit eba4763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,8 @@ defineEarlyCutoff' doDiagnostics cmp key file old mode action = do
10011001
v <- liftIO $ getValues state key file
10021002
case v of
10031003
-- No changes in the dependencies and we have
1004-
-- an existing result.
1005-
Just (v, diags) -> do
1004+
-- an existing successful result.
1005+
Just (v@Succeeded{}, diags) -> do
10061006
when doDiagnostics $
10071007
updateFileDiagnostics file (Key key) extras $ map (\(_,y,z) -> (y,z)) $ Vector.toList diags
10081008
return $ Just $ RunResult ChangedNothing old $ A v

0 commit comments

Comments
 (0)