Skip to content

Derive Data.Generic.Rep.Generic#2356

Merged
paf31 merged 11 commits intomasterfrom
phil/derive-generic-rep
Oct 23, 2016
Merged

Derive Data.Generic.Rep.Generic#2356
paf31 merged 11 commits intomasterfrom
phil/derive-generic-rep

Conversation

@paf31
Copy link
Copy Markdown
Contributor

@paf31 paf31 commented Oct 3, 2016

Fixes #2348

This needs a little more work, since it doesn't handle record types yet, but everything else seems to be working.

Here is a short demo.

@paf31
Copy link
Copy Markdown
Contributor Author

paf31 commented Oct 4, 2016

I've added basic support for records (that is, data types with a single argument which is a record - we can expand this later if necessary).

Tests should start passing once purescript-deprecated/purescript-generics-rep#2 is merged.

@paf31
Copy link
Copy Markdown
Contributor Author

paf31 commented Oct 5, 2016

Tests are now passing, apart from the one which was failing already anyway.

"purescript-partial": "1.1.2",
"purescript-newtype": "0.1.0"
"purescript-newtype": "0.1.0",
"purescript-generics-rep": "2.0.0"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the rest of the versions of these while we're at it? Will probably need to tweak some tests, but may as well get it done, since the dependencies conflict with this (I think?).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we definitely should soon, but I'd like to leave it for a separate PR after this one. I think there might be a lot more changes needed than we suspect 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okidoke. How does these even work now without resolutions specified?!

Copy link
Copy Markdown
Contributor Author

@paf31 paf31 Oct 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think generics-rep-2.0.0 used the pre-0.10 libraries.

@garyb
Copy link
Copy Markdown
Member

garyb commented Oct 23, 2016

👍 then, but I guess we should bump things so we can test against the latest generics-rep before releasing 0.10.2 😄

@paf31
Copy link
Copy Markdown
Contributor Author

paf31 commented Oct 23, 2016

Yes, agreed. I'll write up an issue.

@paf31 paf31 merged commit fe6a709 into master Oct 23, 2016
@paf31 paf31 deleted the phil/derive-generic-rep branch October 23, 2016 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants