Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/Prelude.md
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,12 @@ sets with a supremum (`sup` or `||`) and infimum (`inf` or `&&`).
Instances should satisfy the following laws in addition to the `Ord`
laws:

- Supremum:
- `a || b >= a`
- `a || b >= b`
- Infimum:
- `a && b <= a`
- `a && b <= b`
- Associativity:
- `a || (b || c) = (a || b) || c`
- `a && (b && c) = (a && b) && c`
Expand Down
6 changes: 6 additions & 0 deletions src/Prelude.purs
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,12 @@ instance boundedOrdering :: Bounded Ordering where
-- | Instances should satisfy the following laws in addition to the `Ord`
-- | laws:
-- |
-- | - Supremum:
-- | - `a || b >= a`
-- | - `a || b >= b`
-- | - Infimum:
-- | - `a && b <= a`
-- | - `a && b <= b`
-- | - Associativity:
-- | - `a || (b || c) = (a || b) || c`
-- | - `a && (b && c) = (a && b) && c`
Expand Down