
13 Aug
2007
13 Aug
'07
11:31 a.m.
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: stefan@stefans:~$ ghc -e '1000000000000000000 :: Int' -1486618624 stefan@stefans:~$ Stefan