Skip to content

Commit 92e726b

Browse files
committed
Add success message when applying equation
1 parent a833104 commit 92e726b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

booster/library/Booster/Pattern/ApplyEquations.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,9 @@ applyEquation term rule = withRuleContext rule $ fmap (either Failure Success) $
977977
-- throws if an ensured condition found to be false
978978
catMaybes <$> mapM (checkConstraint EnsuresFalse) ensured
979979
lift $ pushConstraints $ Set.fromList ensuredConditions
980-
pure $ substituteInTerm subst rule.rhs
980+
let rewrittenTerm = substituteInTerm subst rule.rhs
981+
withContext "success" $ logMessage ("" :: Text)
982+
pure rewrittenTerm
981983
unclearConditions -> do
982984
withContext "failure" $
983985
logMessage $

0 commit comments

Comments
 (0)