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 get the underlying Int without exposing the newtype constructor. If Bitwise operators like and, and or were all in a typeclass, this would allow us to derive newtype and would allow other specializations.
The WebGPU API uses more specialized flavors of
Intlikeunsigned longandunsinged long long. It's practical to newtype these overInt, but then, when doing bitmasks, one can't get the underlyingIntwithout exposing the newtype constructor. If Bitwise operators likeand, andorwere all in a typeclass, this would allow us toderive newtypeand would allow other specializations.