@@ -39,7 +39,7 @@ type instance RuleResult CondRule = Bool
39
39
ruleCond :: C. MVar Bool -> Rules ()
40
40
ruleCond mv = addRule $ \ CondRule _old _mode -> do
41
41
r <- liftIO $ C. modifyMVar mv $ \ x -> return (not x, x)
42
- return $ RunResult ChangedRecomputeDiff " " r
42
+ return $ RunResult ChangedRecomputeDiff " " r mempty
43
43
44
44
data BranchedRule = BranchedRule
45
45
deriving (Eq , Generic , Hashable , NFData , Show , Typeable )
@@ -50,9 +50,9 @@ ruleWithCond = addRule $ \BranchedRule _old _mode -> do
50
50
r <- apply1 CondRule
51
51
if r then do
52
52
_ <- apply1 SubBranchRule
53
- return $ RunResult ChangedRecomputeDiff " " (1 :: Int )
53
+ return $ RunResult ChangedRecomputeDiff " " (1 :: Int ) mempty
54
54
else
55
- return $ RunResult ChangedRecomputeDiff " " (2 :: Int )
55
+ return $ RunResult ChangedRecomputeDiff " " (2 :: Int ) mempty
56
56
57
57
data SubBranchRule = SubBranchRule
58
58
deriving (Eq , Generic , Hashable , NFData , Show , Typeable )
@@ -61,4 +61,4 @@ type instance RuleResult SubBranchRule = Int
61
61
ruleSubBranch :: C. MVar Int -> Rules ()
62
62
ruleSubBranch mv = addRule $ \ SubBranchRule _old _mode -> do
63
63
r <- liftIO $ C. modifyMVar mv $ \ x -> return (x+ 1 , x)
64
- return $ RunResult ChangedRecomputeDiff " " r
64
+ return $ RunResult ChangedRecomputeDiff " " r mempty
0 commit comments