File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ to easily compute successor and predecessor elements. e.g. `DayOfWeek`, etc.
37
37
38
38
Laws:
39
39
40
- - ``` succ firstEnum >>= succ >>= succ ... succ [cardinality - 1 times] == lastEnum ```
41
- - ``` pred lastEnum >>= pred >>= pred ... pred [cardinality - 1 times] == firstEnum ```
40
+ - ``` succ firstEnum >>= succ >>= succ ... succ [cardinality - 1 times] == Just lastEnum ```
41
+ - ``` pred lastEnum >>= pred >>= pred ... pred [cardinality - 1 times] == Just firstEnum ```
42
42
- ``` e1 `compare` e2 == fromEnum e1 `compare` fromEnum e2 ```
43
43
- ``` forall a > firstEnum: pred a >>= succ == Just a ```
44
44
- ``` forall a < lastEnum: succ a >>= pred == Just a ```
@@ -153,4 +153,4 @@ instance enumTuple :: (Enum a, Enum b) => Enum (Tuple a b)
153
153
154
154
``` purescript
155
155
instance enumEither :: (Enum a, Enum b) => Enum (Either a b)
156
- ```
156
+ ```
You can’t perform that action at this time.
0 commit comments