-
Notifications
You must be signed in to change notification settings - Fork 24
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
UnboundedEnum #22
Comments
I take it this is because of |
Yes, any of those would do for writing the checks. Which one is preferable? |
The current I can see some benefit in having an |
Would these be enough then? -- | - Isn't the second one redundant? |
I think |
I think this is resolved by #32; please reopen if not. |
The current
Enum
laws don't hold forBoundedEnum
.Shouldn't we have something like
class Enum a <= UnboundedEnum a
and move there the currentEnum
laws?BoundedEnum
would then be extended withforall a > bottom, a < top: pred a < succ a
forall a > bottom, a < top: succ a > pred a
forall a > bottom: pred >=> succ >=> pred = pred
forall a < top: succ >=> pred >=> succ = succ
I don't know who could potentially want to implement
UnboundedEnum
though, maybe some bigint package? Would it be useful at all?The text was updated successfully, but these errors were encountered: