What's difference between Integer and Int?

2003-08-19 Thread Serguey Zefirov
Hello glasgow-haskell-users, The following program --- --main = print (show (fibs!!20)) main = print (show (nth 20 fibs)) nth 0 (h:_) = h nth n (h:t) = nth (n-1) t fibs :: [Integer] -- fibs = 1 : (map snd $ iterate (\(x,y) - (y, x+y)) (1,1))

Re: What's difference between Integer and Int?

2003-08-19 Thread Carsten Schultz
Hi Serguey! On Tue, Aug 19, 2003 at 03:14:53PM -0700, Serguey Zefirov wrote: Hello glasgow-haskell-users, The following program --- --main = print (show (fibs!!20)) main = print (show (nth 20 fibs)) nth 0 (h:_) = h nth n (h:t) = nth

GHC 6.0.1 for Mac OS X available through darwinports

2003-08-19 Thread Gregory Wright
Hello, GHC 6.0.1 for Mac OS X is now available through the darwinports system. Darwinports is similar to the *BSD port system. It downloads and builds both the target and dependencies automatically for your machine. Note that darwinports is still under development. OS X users who want a

Hash functions

2003-08-19 Thread George Russell
Many thanks for Data.HashTable, which I am about to use. Unfortunately I seem to need an unseemly hack because the key I want, namely ThreadId's, don't have a hash function defined, and defining one requires me to muck around with GHC internal functions. Could some more hash functions be