Replies: 1 comment 3 replies
-
Ah, there are no type classes in Koka like there are in Haskell. There is static overloading of identifiers: like a The only way around it for now is:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to make a generic tree, i.e., one that can contain values of any type, and keys that are comparable.
There is already a
compare
function that is perfect. How can I specify a tree type that uses it?If I use
and use it
there is an error
I'd be happy to constrain keys to the "candidates" above... but how?
Beta Was this translation helpful? Give feedback.
All reactions