Open chshersh opened 4 years ago
fromIntegral produces unexpected results for almost all types and is partial for Natural. We can recommend safer versions of this function.
fromIntegral
Natural
toIntegralSized
base
Additionally, we can add possible solutions for already existing fromInteger inspection:
fromInteger
integerToBounded
integerToNatural
fromIntegral
produces unexpected results for almost all types and is partial forNatural
. We can recommend safer versions of this function.toIntegralSized
frombase
Additionally, we can add possible solutions for already existing
fromInteger
inspection:integerToBounded
integerToNatural