Re[2]: [Haskell-cafe] Deadlock in real number multiplication (Was: Where's the problem ?)

2007-07-05 Thread Miguel
R Another interesting thing I've discovered is: Prelude length [1..100] R 100 Prelude Data.List.genericLength [1..100] R *** Exception: stack overflow R Maybe there is something wrong with Integer ? No, there is something wrong with genericLength: Prelude Data.List.foldl (+) 0 $

Re: [Haskell-cafe] Deadlock in real number multiplication (Was: Where's the problem ?)

2007-07-04 Thread Rome
A friend of mine compiled it under Linux and got: . . . 32779 : 1 1 ---32776-- 0 32780 : 1 0 ---32777-- -1 Main: Ix{Integer}.index: Index (32766) out of range ((0,32765)) If I convert every Integer into Int and use instead of the generic list functions the prelude-list functions,

Re: [Haskell-cafe] Deadlock in real number multiplication (Was: Where's the problem ?)

2007-07-04 Thread Henning Thielemann
On Wed, 4 Jul 2007, Rome wrote: A friend of mine compiled it under Linux and got: . . . 32779 : 1 1 ---32776-- 0 32780 : 1 0 ---32777-- -1 Main: Ix{Integer}.index: Index (32766) out of range ((0,32765)) If I convert every Integer into Int and use instead of the generic