That will work under Adam's scheme.

-Edward


On Tue, Oct 15, 2013 at 6:02 PM, Johan Tibell <johan.tibell@gmail.com> wrote:
On Tue, Oct 15, 2013 at 2:41 PM, AntC <anthony_clayden@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
 

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs