PROPOSAL: Include record puns in Haskell 2011

Martijn van Steenbergen martijn at van.steenbergen.nl
Wed Feb 24 13:40:37 EST 2010


Ian Lynagh wrote:
> I have a feeling I'm in the minority, but I find record punning an ugly
> feature.
> 
> Given
>     data T = C { f :: Int }
> we implicitly get
>     f :: T -> Int
> which punning shadows with
>     f :: Int
> whereas I generally avoid shadowing completely.

I agree with Ian.

Groetjes,

Martijn.



More information about the Haskell-prime mailing list