Skip to content

Commit

Permalink
Clarify relationship between Ord and Eq by updating the antisymmetry …
Browse files Browse the repository at this point in the history
…law (#298)

* Clarify relationship between  and  by updating the antisymmetry law

* Update changelog
  • Loading branch information
JamieBallingall authored Jul 7, 2022
1 parent 32787f4 commit f411f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:
Bugfixes:

Other improvements:
- Documentation: Clarify relationship between `Ord` and `Eq` (#298 by @JamieBallingall)

## [v6.0.0](https://github.com/purescript/purescript-prelude/releases/tag/v6.0.0) - 2022-04-27

Expand Down
2 changes: 1 addition & 1 deletion src/Data/Ord.purs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Type.Proxy (Proxy(..))
-- | `Ord` instances should satisfy the laws of total orderings:
-- |
-- | - Reflexivity: `a <= a`
-- | - Antisymmetry: if `a <= b` and `b <= a` then `a = b`
-- | - Antisymmetry: if `a <= b` and `b <= a` then `a == b`
-- | - Transitivity: if `a <= b` and `b <= c` then `a <= c`
-- |
-- | **Note:** The `Number` type is not an entirely law abiding member of this
Expand Down

0 comments on commit f411f34

Please sign in to comment.