One of the original motivations for questioning the DMR steems from the
fact that function definitions expressed as simple pattern bindings are
sometimes rejected. The definition
sum as = foldr (+) 0 as
is accepted but
sum = foldr (+) 0
is not which is admittingly irritating. Couldn't the compiler silently
eta-expand the second definition into the first thus turning a simple
pattern binding into a function binding?
Ralf
- Monomorphism John C. Peterson
- Re: Monomorphism Jeffrey R. Lewis
- Re: Monomorphism Alex Ferguson
- Re: Monomorphism Simon L Peyton Jones
- Re: Monomorphism Olaf Chitil
- Re: Monomorphism Simon L Peyton Jones
- RE: Monomorphism Ralf Hinze
- RE: Monomorphism michael
- RE: Monomorphism Jon . Fairbairn
- Re: Monomorphism Simon L Peyton Jones
- RE: Re: Monomorphism michael
- monomorphism David Feuer
- Monomorphism John C. Peterson
- Re: Monomorphism Fergus Henderson
