Skip to content

Commit

Permalink
Display 'None' when there are no injective fact instances (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixlinker committed Apr 3, 2024
1 parent d694dff commit 0e1aa8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Web/Theory.hs
Expand Up @@ -876,7 +876,7 @@ rulesSnippet thy = vcat
else ppWithHeader "Macros" $
(prettyMacros $ theoryMacros thy)
, ppWithHeader "Fact Symbols with Injective Instances" $
fsepList (text . showInjFact) injFacts
(if null injFacts then text "None" else fsepList (text . showInjFact) injFacts)
, ppWithHeader "Multiset Rewriting Rules" $
(if null(theoryMacros thy) then text empty else text "(Shown with macros application)") <-> (vsep $ map prettyRuleAC msrRules)
, ppWithHeader "Restrictions of the Set of Traces" $
Expand Down Expand Up @@ -942,7 +942,7 @@ rulesDiffSnippetSide s isdiff thy = vcat
else ppWithHeader "Macros" $
(prettyMacros $ diffTheoryMacros thy)
,ppWithHeader "Fact Symbols with Injective Instances" $
fsepList (text . showInjFact) injFacts
(if null injFacts then text "None" else fsepList (text . showInjFact) injFacts)
, ppWithHeader "Multiset Rewriting Rules" $
(if null(diffTheoryMacros thy) then text empty else text "(Shown with macros application)") <-> (vsep $ map prettyRuleAC msrRules)
, ppWithHeader "Restrictions of the Set of Traces" $
Expand Down

0 comments on commit 0e1aa8f

Please sign in to comment.