[Haskell-cafe] Re: explicit big lambdas
ganesh at earth.li
Fri Mar 19 18:10:32 EDT 2010
On Fri, 19 Mar 2010, oleg at okmij.org wrote:
> Paul Brauner wrote:
>> is there a way in some haskell extension to explicit (system F's) big
>> lambdas and (term Type) applications in order to help type inference?
> Actually, yes: newtype constructor introductions may act as a big
> lambda, with constructor elimination acting as type applications:
> Newtypes are also handy for turning type functions (defined by type
> families) into real lambdas. For example, given the following code
Isn't this the equivalent of explicitly naming a function rather than
making an anonymous one with lambda?
More information about the Haskell-Cafe