10 Dec
2003
10 Dec
'03
6:30 a.m.
On 09-Dec-2003, Yaroslav Korchevsky <jslav@mail.ru> wrote:
================================ my_avg list = (accum list) / 5 --works fine ================================ xx = 5 my_avg list = (accum list) / xx --doesn't work -- same message as above ================================
The infamous monomorphism restriction (Haskell Report section 4.5.5) strikes again. -- Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit The University of Melbourne | of excellence is a lethal habit" WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.