-
Notifications
You must be signed in to change notification settings - Fork 24
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
Port Enum parts of generics-rep to this repo #46
Conversation
Fix instances for record fields
Break up modules
* 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
Updates for 0.12
Add guide
test/Test/Data/Main.purs
Outdated
@@ -0,0 +1,149 @@ | |||
module Test.Data.GenericsRep where |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
I know this got approval, but on second thought, I should do the same thing I did in |
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. |
Thank you very much for remembering about the history preservation 🙇 |
No description provided.