On Mon, Aug 13, 2007 at 11:23:59PM +0800, L.Guo wrote:
> Because 10,000,000 is too large for a Int, it is always in type of Integer or 
> some higher level data type.

In Haskell, Int always supports at least -536,870,912 to 536,870,911.

Also, large numbers don't (this is arguably a bug...) have restricted
types:

[EMAIL PROTECTED]:~$ ghc -e '1000000000000000000 :: Int'
-1486618624
[EMAIL PROTECTED]:~$ 

Stefan

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to