-
Notifications
You must be signed in to change notification settings - Fork 49
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
Constraint missing on type parameter #74
Comments
@flip111 , here is a similar issue that appears in #77 Given this
should
or this?
Thanks |
I think we will need some means of telling the code generator what is correct. There are cases where you want the constraint on the type parameters, sometimes you don't. Depends very much on the type class at hand and the type. |
@peterbecich i'm not sure. Could you pass flag -ddump-deriv to GHC and paste the haskell code for the Generic implementation? |
* `CodeGenSwitches` no longer used * `Proxy` no longer used * `Printer` uses `Leijen.Text` instead of `Text` * some unit tests replaced with IOHK's tests TODO * fix derived instances * eskimor#74 (comment) * fix tests
The generated purescript code looks like this
But instead the instance should be like this
The text was updated successfully, but these errors were encountered: