-
Notifications
You must be signed in to change notification settings - Fork 41
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
Ord compare #49
Comments
We can have |
@davidchambers but you can derive |
What's the advantage of |
I think most of the discussion about this happened at fantasyland/fantasy-land#235 . And seems like the summary as David pointed out is that Also, we try to avoid breaking changes as much as possible, so this change is unlikely to happen, and I'm going to close this issue for now. |
Sanctuary also doesn't seem to support static-land |
I'm not intimately familiar with Static Land, so please correct me if I am wrong, but my understanding is that the Sanctuary module is a polymorphic Static Land module. We can create values of type > S.of (S.Maybe) (64)
Just (64)
> S.of (S.Either) (64)
Right (64) We can interact with these values by using the > S.map (Math.sqrt) (S.of (S.Maybe) (64))
Just (8)
> S.map (Math.sqrt) (S.of (S.Either) (64))
Right (8) If this does not count as Static Land support, I'd love to know what more Sanctuary could provide. |
@davidchambers if I have static land |
Good question, @goodmind! I see the problem now. @rpominov, perhaps you could help with this. How would one change -S.sort (['foo', 'bar', 'baz'])
+S.sort (Array) (String) (['foo', 'bar', 'baz']) |
Right, since #45 isn't resolved yet, the only way to implement |
Thanks, Roman. #45 will be terrific, in that case. :D |
what about
Ord
'scompare
function?In Haskell's hackage about
Data.Ord
The text was updated successfully, but these errors were encountered: