To be more precise, Int represents a machine-sized integer value, so it is limited in size but doing math with Int values translates directly into math on the processor.  Integer can store integer values of arbitrary size, which is useful sometimes but is of course a lot slower, since the pieces of an Integer value have to be stored in some sort of list, and specialized code is used to do arithmetic with Integers by operating on the pieces and combining the results.

How have you been learning Haskell?  I'm guessing this is probably covered in most tutorials.

-Brent

On 7/12/07, Gregory Propf < gregorypropf@yahoo.com> wrote:
So what the hell is the difference between them?  Int and Integer.  They aren't synonyms clearly.  What's going on?


Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.

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