Skip to content

Instance for NonEmptyArray? #58

Closed
@JamieBallingall

Description

@JamieBallingall

We have an instances of EncodeJson and DecodeJson for NonEmpty Array but not for NonEmptyArray. Is there a reason for that?

If not, I'd be happy to take a shot at implementing, with two minor points:

  1. The logical names for those instances (encodeJsonNonEmptyArray and decodeJsonNonEmptyArray) are already in use. I propose renaming the existing ones to encodeJsonNonEmpty_Array and decodeJsonNonEmpty_Array. Would that break anything?
  2. There was some discussion in Instances for NonEmpty Array and NonEmpty List #25 about implementing encodeJsonNonEmptyFoldable and decodeJsonNonEmptyFoldable. That doesn't seem to have happened. Was there a reason it was avoided or did it just fall off the radar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions