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

Use arbitraryBoundedEnum instead of genericArbitrary where possible. #477

Merged
merged 4 commits into from
Jun 26, 2019

Conversation

jonathanknowles
Copy link
Member

Issue Number

None, but a continuation of #468.

Overview

For pure enumeration data types with only nullary data constructors, we often auto-derive Bounded and Enum instances, and use arbitraryBoundedEnum to generate arbitrary values. However, there are a few instances that use genericArbitrary.

This PR fixes this inconsistency, removing dependencies on generic-arbitrary where possible.

@jonathanknowles jonathanknowles self-assigned this Jun 26, 2019
@jonathanknowles jonathanknowles force-pushed the jonathanknowles/arbitrary-bounded-enum branch from 97527b1 to 8d2e110 Compare June 26, 2019 02:01
@KtorZ KtorZ self-requested a review June 26, 2019 07:06
@KtorZ KtorZ merged commit 23c18f9 into master Jun 26, 2019
@KtorZ KtorZ deleted the jonathanknowles/arbitrary-bounded-enum branch June 26, 2019 07:07
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