type of (/) ?
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Dec 10 17:30:07 EST 2003
On 09-Dec-2003, Yaroslav Korchevsky <jslav at 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 at 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.
More information about the Haskell-Cafe
mailing list