|
export const topInt = 2147483647; |
|
export const bottomInt = -2147483648; |
The bottom and top values for Int are listed as above. The problem here is that -bottom is greater than top, which means bottom is actually not a safe value for the Ring instance of Int. You can verify for yourself that negate bottom == bottom!
purescript-prelude/src/Data/Bounded.js
Lines 1 to 2 in f4cad0a
The bottom and top values for
Intare listed as above. The problem here is that-bottomis greater thantop, which meansbottomis actually not a safe value for theRinginstance ofInt. You can verify for yourself thatnegate bottom == bottom!