[Haskell-cafe] A few questions on primes generating.

Andrew Coppin andrewcoppin at btinternet.com
Mon Aug 13 15:14:44 EDT 2007


Stefan O'Rear wrote:
> Also, large numbers don't (this is arguably a bug...) have restricted
> types:
>
> stefan at stefans:~$ ghc -e '1000000000000000000 :: Int'
> -1486618624
>   

So many other programming languages allow weird things to happen with 
numeric overflows... it would be nice if Haskell didn't.



More information about the Haskell-Cafe mailing list