Skip to content

Commit

Permalink
fix checkNegativeLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
nimec01 committed Dec 23, 2024
1 parent d38e57e commit 6e079b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modelling/StateDiagram/Checkers/Representation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ checkStartToRegion _ = True
checkNegativeLabels :: StateDiagram n Int [Connection Int] -> Bool
checkNegativeLabels StateDiagram{label,substates} = label >= 0 && all checkNegativeLabels substates
checkNegativeLabels CombineDiagram{label,substates} = label >= 0 && all checkNegativeLabels substates
checkNegativeLabels sd = label sd >= 0 && all checkNegativeLabels (substates sd)
checkNegativeLabels sd = label sd >= 0

0 comments on commit 6e079b0

Please sign in to comment.