-
Notifications
You must be signed in to change notification settings - Fork 294
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
Typeable instance for Keys? #352
Comments
I just tried this out... looks like we can't derive |
Maybe for the next "bigger" Version bump? :-) I'll try out StandaloneDeriving for now, I think it should work. |
GHC automagically derives persistent-template > /home/matt/Projects/persistent/persistent-template/test/main.hs:44:1: e
rror:
persistent-template > • Couldn't match representation of type ‘c (BackendKey SqlBackend)’
persistent-template > with that of ‘c (Key Address)’
persistent-template > arising from the coercion of the method ‘gfoldl’
persistent-template > from type ‘forall (c :: * -> *).
persistent-template > (forall d b. Data d => c (d -> b) -> d -> c b)
persistent-template > -> (forall g. g -> c g)
persistent-template > -> BackendKey SqlBackend
persistent-template > -> c (BackendKey SqlBackend)’
persistent-template > to type ‘forall (c :: * -> *).
persistent-template > (forall d b. Data d => c (d -> b) -> d -> c b)
persistent-template > -> (forall g. g -> c g) -> Key Address -> c (Key A
ddress)’
persistent-template > NB: We cannot know what roles the parameters to ‘c’ have;
persistent-template > we must assume that the role is nominal
persistent-template > • When deriving the instance for (Data (Key Address)) Perhaps we should drop the BackendKey business. |
Would it be possible to generate a Typeable/Data instance for Database-Keys?
The text was updated successfully, but these errors were encountered: