-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extensible Records? #18
Comments
Yes, and unfortunately I just can't imagine a solution to this, which does not involve making this a special case in the compiler. |
With ghc >= 7.8 you have |
Seems very intriguing. I'll check it out later. Thanks. |
I've cleaned up/commented that file a bit and put it in https://github.com/aavogt/record/blob/append/library/Record/Append.hs |
I think it would be nice to be able to do something like this:
I think it could be done with a type class
which could be instantiated with Template Haskell (and that would be an ungodly amount of instances...). But perhaps there is some hairy type extension that could help?
A possible problem would be the ordering of the fields.
Do you know how the Elm people do it?
The text was updated successfully, but these errors were encountered: