Typeclasses in Operator Signature Bodies & Generics Incld. #132
Replies: 3 comments 6 replies
-
Maybe |
Beta Was this translation helpful? Give feedback.
-
Well, one way to verify if a value belongs to a certain type class you could... execute the I agree that maybe saving the input values and the matched type makes sense, so it's tested only once. I like it! I could expose two special symbols as you said (however I'd call them just
So basically
Some of this information is already accessible through the captured variables, but in this way you could process it programmatically by iterating on the keys of Good idea, thanks! P.S.: Actually |
Beta Was this translation helpful? Give feedback.
-
That seems interesting. I wonder what can we will be able to do after implementing them to Min. Maybe more complex symbols... 🌻
You're welcome!
I don't know. You seem right of yours. But there may be an important example of |
Beta Was this translation helpful? Give feedback.
-
So when i gave an
string
argument aschar
argument to in, then it will control its argument type for constraint but don't gives its typeclass as type.This causes a hardened conflicting:
Did you look at above. These types where are in generic, a special form of
string
type. However they cannot be controlled from operator body because their input type of argument isstring
. Thereafter,How can you get their typeclasses from generics?
Beta Was this translation helpful? Give feedback.
All reactions