Skip to content

Commit 02f0d41

Browse files
committed
fix hls-graph
1 parent 69c9396 commit 02f0d41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hls-graph/test/ActionSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ spec = do
8787
ruleUnit
8888
addRule $ \Rule _old _mode -> do
8989
[()] <- applyWithoutDependency [Rule]
90-
return $ RunResult ChangedRecomputeDiff "" True
90+
return $ RunResult ChangedRecomputeDiff "" True mempty
9191

9292
let theKey = Rule @Bool
9393
res <- shakeRunDatabase db $

hls-graph/test/Example.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type instance RuleResult CondRule = Bool
3939
ruleCond :: C.MVar Bool -> Rules ()
4040
ruleCond mv = addRule $ \CondRule _old _mode -> do
4141
r <- liftIO $ C.modifyMVar mv $ \x -> return (not x, x)
42-
return $ RunResult ChangedRecomputeDiff "" r
42+
return $ RunResult ChangedRecomputeDiff "" r mempty
4343

4444
data BranchedRule = BranchedRule
4545
deriving (Eq, Generic, Hashable, NFData, Show, Typeable)
@@ -50,9 +50,9 @@ ruleWithCond = addRule $ \BranchedRule _old _mode -> do
5050
r <- apply1 CondRule
5151
if r then do
5252
_ <- apply1 SubBranchRule
53-
return $ RunResult ChangedRecomputeDiff "" (1 :: Int)
53+
return $ RunResult ChangedRecomputeDiff "" (1 :: Int) mempty
5454
else
55-
return $ RunResult ChangedRecomputeDiff "" (2 :: Int)
55+
return $ RunResult ChangedRecomputeDiff "" (2 :: Int) mempty
5656

5757
data SubBranchRule = SubBranchRule
5858
deriving (Eq, Generic, Hashable, NFData, Show, Typeable)
@@ -61,4 +61,4 @@ type instance RuleResult SubBranchRule = Int
6161
ruleSubBranch :: C.MVar Int -> Rules ()
6262
ruleSubBranch mv = addRule $ \SubBranchRule _old _mode -> do
6363
r <- liftIO $ C.modifyMVar mv $ \x -> return (x+1, x)
64-
return $ RunResult ChangedRecomputeDiff "" r
64+
return $ RunResult ChangedRecomputeDiff "" r mempty

0 commit comments

Comments
 (0)