-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add instances for SNat
, SSymbol
, and SChar
#57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's now also EqP
and OrdP
, if you don't mind adding instance for them, it would be great
|
@RyanGlScott they really should (even they are trivial). |
Yes, I agree. Unfortunately, I overlooked them when proposing haskell/core-libraries-committee#85, and the ship has already sailed for GHC 9.6 additions to |
There's future But I'd rather not merge this until the missing instance are added, otherwise the adding of superclass to |
Fair enough. I will try to find time to write a couple follow-up CLC proposals to expand the |
Good news: the |
64c829b
to
8d45aaa
Compare
|
These were introduced to `GHC.TypeNats` and `GHC.TypeLits` in `base-4.18.0.0`. They did not receive `Eq` or `Ord` instances until `base-4.19.0.0`, however, which are required for the superclasses of `EqP` and `OrdP`. To account for this, I introduce a conditional dependency on `base-orphans`, which backports the `Eq` and `Ord` instances to older versions of `base`.
8d45aaa
to
f772966
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Sorry for delay, I missed your comment that you changed this.
https://hackage.haskell.org/package/some-1.0.6 is on hackage |
These were introduced to
GHC.TypeNats
andGHC.TypeLits
inbase-4.18.0.0
. They did not receiveEq
orOrd
instances untilbase-4.19.0.0
, however, which are required for the superclasses ofEqP
andOrdP
. To account for this, I introduce a conditional dependency onbase-orphans
, which backports theEq
andOrd
instances to older versions ofbase
.