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

Port Enum parts of generics-rep to this repo #46

Merged
merged 40 commits into from
Dec 25, 2020
Merged

Port Enum parts of generics-rep to this repo #46

merged 40 commits into from
Dec 25, 2020

Conversation

JordanMartinez
Copy link
Contributor

No description provided.

paf31 and others added 28 commits October 1, 2016 12:53
* Initial work on deriving Show

* Add test for Show

* Remove import

* Travis etc.
* Data.Generic.Rep.Bounded

Generic implementations of Prelude.Bounded class's top and bottom.

* GenericBounded - don't support product types

* GenericBounded - only support NoArguments
Update for PureScript 0.11
Add classes for Enum deriving
Product instances in Bounded and Enum
…20)

* Added Eq and Show instances to NoArguments and NoConstructors

* Added GenericShowFields

* Removed Show, Eq

* Cleanup

* Removed NoConstructors Show instance
@@ -0,0 +1,149 @@
module Test.Data.GenericsRep where
Copy link
Member

Choose a reason for hiding this comment

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

Should we name this module Test.Data.Enum.Generic, since we’re testing the generic implementations exported from Data.Enum.Generic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

test/Main.purs Outdated
main = testEnum
main = do
testEnum
testGenericsRep
Copy link
Member

Choose a reason for hiding this comment

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

What about testGenericEnum, since we’re testing generic implementations for Enum and BoundedEnum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@JordanMartinez
Copy link
Contributor Author

I know this got approval, but on second thought, I should do the same thing I did in prelude and preserve the git history.

@JordanMartinez
Copy link
Contributor Author

I've updated this PR to include the git history using the same command from before. @kl0tl If you still approve, please indicate so via a comment.

@JordanMartinez JordanMartinez merged commit cd8c0d3 into purescript:master Dec 25, 2020
@JordanMartinez JordanMartinez deleted the portGenericReps branch December 25, 2020 13:05
@kl0tl
Copy link
Member

kl0tl commented Dec 25, 2020

Thank you very much for remembering about the history preservation 🙇

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

Successfully merging this pull request may close these issues.