On Dec 31, 2007, at 12:50 , L.Guo wrote:

And what is the difference between fromIntegral and fromInteger ?

Integer is a specific single type:  unlimited-precision integers.
Integral is a typeclass which includes, among others: Integer, Int (integers represented in machine words, so either 32 or 64 bits), the various Word* types defined in Data.Word (various fixed word sizes such as Word8, as distinct from the hardware-preferred one represented by Int), and the compatibility types defined in Foreign.C.Types.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


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

Reply via email to