-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derive Ord
for StateDiagram
and UMLStateDiagram
#6
Comments
The short answer probably is that it wasn't needed so far. As in, there was no API use case for comparing diagrams. What is it you want to do? Put them in some collection data structure that needs order for efficient access? A slightly longer answer is that simply deriving sd-generate/src/Modelling/StateDiagram/Datatype.hs Lines 139 to 146 in 278d13c
If a diagram output by that function would be passed to a derived == operation, a runtime error would occur.
So instead, But the question really remains what the purpose of said |
I am currently using a Map with
That makes sense. I will then define my own instance when necessary. |
Is there any specific reason why these types are not deriving
Ord
?Standalone deriving does not work since "The data constructors of ‘UMLStateDiagram’ are not all in scope"
The text was updated successfully, but these errors were encountered: