You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once purescript/purescript#3058 is merged, perhaps BoundedEnum could get a new param, with its cardinality defined at type level, with a fundep from the type to the cardinality.
The text was updated successfully, but these errors were encountered:
Honestly this might be excessive zeal for safety on my part. My thinking was that it allows this Range idea that I'm working on to have a type-level natural as well, which would mean that you could get an efficient toEnum' that lacks a Maybe, if you were to use the types from modular-arithmetic. But really, that is probably getting to the point of being cumbersome. And it could be defined in a separate lib, too.
If I can't think of something better here, I could close this.
Once purescript/purescript#3058 is merged, perhaps
BoundedEnum
could get a new param, with its cardinality defined at type level, with a fundep from the type to the cardinality.The text was updated successfully, but these errors were encountered: