-
Notifications
You must be signed in to change notification settings - Fork 37
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
SafeCopy instance of a parameterized type #29
Comments
The error messages I get from that module look like this:
|
I just noticed that the context of the data declaration is added to the SafeCopy declaration, so you can fix this by adding context to T2. However, the DatatypeContexts feature is considered a bad thing. |
I'm closing this because I'm no longer certain the DatatypeContexts directive is necessary. |
Ok, I've updated the example http://lpaste.net/135048 to show that it does require DatatypeContexts to build. Reopening. |
This is now fixed. |
No, its not. |
http://lpaste.net/146499 is a file that demonstrates the issue. |
There are circumstances where more context is needed on the type parameter when generating a SafeCopy instance from T1 typ. For example, http://lpaste.net/135048 is a module where the IxSet types create a need for Data, Typeable, and Ord. I'm not yet sure what the correct solution is to this issue, but for the moment I've added these superclasses to our version of safecopy.
The text was updated successfully, but these errors were encountered: