Skip to content
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

Include "instance Data a => Lift a" in ForSyDe #16

Open
HWoidt opened this issue Mar 24, 2016 · 1 comment
Open

Include "instance Data a => Lift a" in ForSyDe #16

HWoidt opened this issue Mar 24, 2016 · 1 comment

Comments

@HWoidt
Copy link
Contributor

HWoidt commented Mar 24, 2016

Issue by HWoidt
Saturday Jul 11, 2015 at 13:04 GMT
Originally opened as https://gits-15.sys.kth.se/ingo/forsyde-deep/issues/16


Reported by [email protected], Jun 23, 2008

As we know, all the types handled by ForSyDe are required to be instances
of Data.

Creating a "Data a => Lift a" (undecidable) instance would make all
instances of Data (and implicilty all ForSyDe-supported types) also
instances of Lift, sparing us from needing to use $(deriveLift
WhateverDataType).

I created ticket [1] in GHC's track asking for this feature a while ago,
and they accepted to include it in GHC 6.10, but that won't happen in a while.

[1] http://hackage.haskell.org/trac/ghc/ticket/1830

@HWoidt
Copy link
Contributor Author

HWoidt commented Mar 24, 2016

Comment by HWoidt
Saturday Jan 23, 2016 at 07:11 GMT


There has been an update on the GHC ticket. The upcoming version of GHC will support automatic derivation of the Lift instance using "... deriving Lift" through the -XDeriveLift extension.

https://ghc.haskell.org/trac/ghc/ticket/1830
https://phabricator.haskell.org/D1168
https://phabricator.haskell.org/D1269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant