Skip to content

Enable Ord Record instance and clarify its equivalence to compiler derived Ord #176

@natefaubion

Description

@natefaubion

Compiler derived Ord for records is the same as RowToList ordering. I'd suggest we enable it (it's currently commented out) and note the equivalence between:

newtype MyRecord = MyRecord {...}
derive instance ordMyRecord :: Ord MyRecord
instance ordMyRecord :: Ord MyRecord where
  compare (MyRecord r1) (MyRecord r2) = compare r1 r2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions