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

cheers,
Fraser.

On 11/17/05, Joel Reymont <[EMAIL PROTECTED] > 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.

--
http://wagerlabs.com/





_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to