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))

ObjectIO

2002-09-17 Thread Serguey Zefirov
Hello glasgow-haskell-users, First, it would be good to have examples somewhere around ObjectIO main page. I've figured out how to download source code for examples only after third or fourth try. I know, that the question about examples and source code should be directed to the