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

Add NonEmptyArray and NonEmptyList instances #61

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Conversation

thomashoneyman
Copy link
Contributor

What does this pull request do?

Closes #58 by adding instances for NonEmptyArray and NonEmptyList.

I also considered adding Foldable and NonEmpty Foldable instances, as suggested in #25, but this would cause overlapping instances with existing foldable structures (Array, List). Any suggestions for this -- instance chains, or skip altogether?

Where should the reviewer start?

Additions to the Encode.Class and Decode.Class modules, plus new tests added to the nonempty suite with QuickCheck.

Other Notes:

I also did some minor cleanup to make the modules' coding style more consistent, but without making changes to functionality.

@thomashoneyman thomashoneyman added the type: enhancement A new feature or addition. label Aug 28, 2019
@thomashoneyman thomashoneyman requested a review from garyb August 28, 2019 04:30
@thomashoneyman thomashoneyman self-assigned this Aug 28, 2019
@thomashoneyman thomashoneyman merged commit 493002f into master Aug 28, 2019
@thomashoneyman thomashoneyman deleted the non-empty branch September 8, 2019 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A new feature or addition.
Development

Successfully merging this pull request may close these issues.

Instance for NonEmptyArray?
3 participants