[Hugs-users] Record puns, time for removal?

Neil Mitchell ndmitchell at gmail.com
Fri Oct 27 11:57:54 EDT 2006


Hi,

I was just looking into Yhc and noticed that it supports record puns,
for example the following code:

------
module Main where
data Point = Point {x :: Int, y :: Int}
main = print $ f $ Point 1 2
f (Point{x}) = x
------

Works fine in Yhc and Hugs, but not in GHC. Is this feature
supported/encouraged or is it depreciated and scheduled for removal? I
am tempted to remove this feature from Yhc since it seems no one uses
it, and GHC doesn't know about it, but was wondering what the Hugs
plans were for it first.

Thanks

Neil


More information about the Hugs-Users mailing list