Status update on overloaded records work?

Johan Tibell johan.tibell at gmail.com
Tue Oct 15 22:02:43 UTC 2013


On Tue, Oct 15, 2013 at 2:41 PM, AntC <anthony_clayden at clear.net.nz> wrote:

> - (What I was hoping for but didn't get.)
>    No compiler flag to suppress creating selector functions.
>   This would have allowed records to be declared re-using the same name;
>   but left it entirely to the developer as to how to access them.
>

Does that mean that this won't work:

module M where

data T1 = C1 { f :: Int }
data T2 = C2 { f :: Int }

?

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20131015/97a9d077/attachment.html>


More information about the ghc-devs mailing list