purescript-prelude icon indicating copy to clipboard operation
purescript-prelude copied to clipboard

Update Reflexivity law of Ord

Open JamieBallingall opened this issue 3 years ago • 0 comments

Description of the change

Fixes #300 by updating the Reflexivity law of Ord to read:

-- | - Reflexivity: if `a == b` then `a <= b`

which better connects Ord to Eq and eliminates an unintuitive case as described in the issue.


Checklist:

  • [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • [X] Linked any existing issues or proposals that this pull request should close
  • [X] Updated or added relevant documentation
  • [X] Added a test for the contribution (if applicable)

JamieBallingall avatar Oct 18 '22 20:10 JamieBallingall