-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use RequireMsg or RequireMsgSym to improve error messages #2
Comments
Thanks! I'll try! |
OK. I just wanted to help and mention this, since it might have been missed due to singleton-ops' lacking documentation (my fault). |
I confirm I had missed it ;) |
Sadly you're right, and I don't see how can this be done otherwise. Fortunately, composition works flawlessly, so you should get most functionality from that. e.g. |
Ideally, independently of singletons, I'd like to be able to write something like that with a bit of genericity: def mult(m1: Dim2[A, B], m2: Dim2[B, C])(implicit r: Dim2[A, B] * Dim2[B, C] ===> Dim2[A, C]): Dim2[A, C] |
I took a brief look at your nice library that uses singleton-ops, and I recommend to use
RequireMsg
orRequireMsgSym
to improve your error messages instead of the defaultimplicitNotFound
message.The text was updated successfully, but these errors were encountered: