-
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
TH error in deriveArgDict #37
Comments
It's tricky -- given an instance (c a), can we get hold of an instance c (Either Text a)? We'd need to know that in order to generate an instance of Has c (CatApi a). I think we're at a point now where we might be able to generate such an instance that uses QuantifiedConstraints, but it's not entirely trivial. You could perhaps write one by hand. (Sorry that I didn't notice this issue any sooner!) |
@cgibbard Thanks a lot! Here's a working example, in case anyone faces the same problem:
|
Here https://github.com/reflex-frp/reflex-gadt-api/blob/develop/Readme.md
If I change the definition of
CatApi
fromto
I get this error
Supporting an
Either
in this case is important for proper error handling ofToken
. Is the usage ofderiveArgDict
correct in this case? if yes, is this a bug?if no, what is the proper way to achieve the
Either
like behavior?The text was updated successfully, but these errors were encountered: