
31 Dec
2007
31 Dec
'07
1:04 p.m.
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] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH