Re: Monomorphism restriction

2006-10-14 Thread Iavor Diatchki
Hello, On 10/14/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello haskell-prime, first is the monomorphism restriction. why isn't it possible to check _kind_ of parameter-less equation and apply monomorphism restrictions only to values of kind '*'? so, this: sum = foldr1 (*) will become

Re: Monomorphism restriction - is this still needed for efficiency?

2006-06-12 Thread Simon Marlow
Brian Hulley wrote: I'm wondering if the monomorphism restriction is now just an anachronism from Haskell 98 or if it is still needed for efficiency ie should I just now use -fno-monomorphism-restriction when compiling all my code to consign it to the dustbin of history? :-) A related

Re: Monomorphism restriction - is this still needed for efficiency?

2006-06-12 Thread Brian Hulley
Simon Marlow wrote: Brian Hulley wrote: I'm wondering if the monomorphism restriction is now just an anachronism from Haskell 98 or if it is still needed for efficiency ie should I just now use -fno-monomorphism-restriction when compiling all my code to consign it to the dustbin of history?

re: Monomorphism Restriction

2001-06-10 Thread Bernard James POPE
Ashley Yakeley, Seattle WA, writes: Is there a point to the monomorphism restriction in GHC and Hugs? In practice, all it seems to mean is occasionally require unnecessary explicit type signatures. I think the point is made clearly enough in section 4.5.5 of the Haskell 98 language report,