Skip to content

Make GenState a newtype and Add Instance for (Testable prop) => Testable (Gen prop) #46

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

Closed
wants to merge 5 commits into from

Conversation

DavidHarrison
Copy link

This allows defining the instance discussed in #45. It seemed more convenient to make GenState a newtype rather than Gen itself as it avoided having to redefine instances (where MonadState GenState Gen would not be possible with the GenState type synonym).

I'm not sure how much breakage this change would cause in other libraries.

@@ -25,6 +25,7 @@
"purescript-lists": "^0.7.0",
"purescript-random": "^0.2.0",
"purescript-strings": "^0.7.0",
"purescript-transformers": "^0.8.1"
"purescript-transformers": "^0.8.1",
"purescript-lens": "~0.9.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Lens isn't in the core library set, and relatively infrequently updated AFAIK, so I'd prefer not to add it as a dependency here.

@paf31
Copy link
Contributor

paf31 commented May 22, 2016

This looks good to me. Could you please rebase it against current master?

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.

2 participants