On 09-Dec-2003, Yaroslav Korchevsky <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>  |  "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.
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to