Conversation
Contributor
|
This looks great! My only quibble is that I don't think the name |
Member
Author
|
Yeah, I guess you're right there actually 😄 Any thoughts on a better name? |
Contributor
|
Not really... |
Contributor
I like this. It makes it reasonably clear what the function does in relation to the others. |
Member
Author
|
I actually was thinking about this again today, had forgotten about the suggestion here and thought up the same name (or so I thought). I think it's a good option, will update accordingly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #47
The formulation here is a little different though, as you don't actually need to split the generator and test the way that was suggested in the issue, since you can write it in the generator directly:
Since that issue was opened,
MonadGenhas come into existence, and with it I've given up usingArbitraryat all, the only problem is you can't throwMonadGenconstrained things directly intoquickcheck, as it doesn't know what to instantiate theMonadGen mwith. TheseforAllvarieties solve that./cc @hdgarrood