We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da4e752 + 95ad0bd commit aad9768Copy full SHA for aad9768
src/Data/Bounded.js
@@ -5,3 +5,6 @@ exports.bottomInt = -2147483648;
5
6
exports.topChar = String.fromCharCode(65535);
7
exports.bottomChar = String.fromCharCode(0);
8
+
9
+exports.topNumber = Number.POSITIVE_INFINITY;
10
+exports.bottomNumber = Number.NEGATIVE_INFINITY;
src/Data/Bounded.purs
@@ -44,3 +44,10 @@ instance boundedOrdering :: Bounded Ordering where
44
instance boundedUnit :: Bounded Unit where
45
top = unit
46
bottom = unit
47
48
+foreign import topNumber :: Number
49
+foreign import bottomNumber :: Number
50
51
+instance boundedNumber :: Bounded Number where
52
+ top = topNumber
53
+ bottom = bottomNumber
0 commit comments