Replaced instances of (read . show) with fromIntegral