
12 Jul
2007
12 Jul
'07
2:01 p.m.
On Thu, Jul 12, 2007 at 10:58:38AM -0700, Gregory Propf wrote:
So what the hell is the difference between them? Int and Integer. They aren't synonyms clearly. What's going on?
stefan@stefans:/usr/local/src/ghcbuild$ ghci Loading package base ... linking ... done. ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.7.20070612, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Prelude> 1000000000000 :: Integer 1000000000000 Prelude> 1000000000000 :: Int -727379968 Prelude> Int is fifteen times faster, but vulnerable to overflow errors. Stefan