Skip to content

Commit f411f34

Browse files
Clarify relationship between Ord and Eq by updating the antisymmetry law (#298)
* Clarify relationship between and by updating the antisymmetry law * Update changelog
1 parent 32787f4 commit f411f34

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

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

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

src/Data/Ord.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import Type.Proxy (Proxy(..))
4040
-- | `Ord` instances should satisfy the laws of total orderings:
4141
-- |
4242
-- | - Reflexivity: `a <= a`
43-
-- | - Antisymmetry: if `a <= b` and `b <= a` then `a = b`
43+
-- | - Antisymmetry: if `a <= b` and `b <= a` then `a == b`
4444
-- | - Transitivity: if `a <= b` and `b <= c` then `a <= c`
4545
-- |
4646
-- | **Note:** The `Number` type is not an entirely law abiding member of this

0 commit comments

Comments
 (0)