Skip to content

Applicative, preserving mempties of each element #88

@cognivore

Description

@cognivore

Currently, Applicative for tuples duplicates mempty of the first element:

|> Tuple.duplicate(size)

Since we're not constrained by parametricity, couldn't we preserve "type" of every element kind of for free, making the usually controversial instance for n-tuples, where n>2 a tad less controversial?

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