asterius
asterius copied to clipboard
Implement & use safeFromIntegral
@TerrorJack Perhaps relevant, I came across this package relating to safe conversions between integers (the statically-ensured safe conversions come for free): https://hackage.haskell.org/package/int-cast-0.2.0.0/docs/Data-IntCast.html