Skip to content

set order comparison #5

@joeyh

Description

@joeyh

While sets are not ordered, type signatures need list items in a specific order, or the type checker will complain.

Eg, Set '[Natural 0, Natural 1] vs Set '[Natural 1, Natural 0]

Your examples suggest to leave off the type signatures and let them be inferred, sidestepping this problem. Which is fine, but in my application, the content of the set is important documentation, so I'd rather include type signatures.

I don't know if this is fixable with current ghc's Data.Type.Equality

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions