[Haskell-cafe] Records (was Re: [Haskell] Improvements to GHC)
joelr1 at gmail.com
Thu Nov 17 12:09:13 EST 2005
I second this motion! I rather like Simon's proposal.
On Nov 17, 2005, at 5:00 PM, Fraser Wilson wrote:
> Yeah, I thought you might have tried that at some point :-)
> I like http://research.microsoft.com/~simonpj/Haskell/records.html
> On 11/17/05, Joel Reymont <joelr1 at gmail.com > wrote: Don't get me
> started, please :-). I tried making each field a
> separate class but then needed to compose records of difference field
> instances which led to HList which led to GHC eating up all my memory
> and crashing, etc.
> I can see where you are going but if I have 250 records with shared
> fields then that's a whole lot of extra boiler plate code to marshall
> between the functions with prefixes to the class method
> implementations. The road to hell is paved with good intentions ;-).
> Thanks for the tip, though.
> On Nov 17, 2005, at 2:12 PM, Fraser Wilson wrote:
> > To solve this problem I just made them all instances of a class
> > with a gameId function. Still, not ideal.
More information about the Haskell-Cafe