We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cbf8d3 commit e903fd2Copy full SHA for e903fd2
src/Data/Bounded.purs
@@ -22,6 +22,9 @@ instance boundedBoolean :: Bounded Boolean where
22
top = true
23
bottom = false
24
25
+-- | The `Bounded` `Int` instance has `top :: Int` equal to 2^31 - 1,
26
+-- | and `bottom :: Int` equal to -2^31, since these are the largest and smallest
27
+-- | integers representable by twos-complement 32-bit integers, respectively.
28
instance boundedInt :: Bounded Int where
29
top = topInt
30
bottom = bottomInt
0 commit comments