purescript-integers
purescript-integers copied to clipboard
Functions and bitwise operators for the Int numeric type
Checklist after RFC - [ ] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)") - [ ] Linked...
The WebGPU API uses more specialized flavors of `Int` like `unsigned long` and `unsinged long long`. It's practical to newtype these over `Int`, but then, when doing bitmasks, one can't...
The documentation for `Int` in `Prim` says: "A 32-bit signed integer. See the purescript-integers package for details of how this is accomplished when compiling to JavaScript." I don't think this...
**Description of the change** https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.issafeinteger Add `maxSafeInteger`, `minSafeInteger`, and `isSafeInteger`. --- **Checklist:** - [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "-...