Re: FAQ: How to Use Extensible Records in GHCi

2004-03-30 Thread Alastair Reid
> Is the feature described in the paper just a > proposal or is there a switch somethere to enable > it? I think you used the wrong compiler. It's called Hugs :-) Prelude> #a ( a='a', b=True ) ERROR - Trex.insertField not in scope *** Possible cause: "Trex" module not imported Prelude> :l Trex

FAQ: How to Use Extensible Records in GHCi

2004-03-29 Thread S. Alexander Jacobson
I feel like I have way too much code of the form: changeGpart (C a b c d e f g h i) g' = C a b c d e f g' h i So, I got excited reading Simon and Mark's "Lightweight Extensible Records For Haskell" paper as a way to get rid of this cruft. I immediately started GHCi, typed {a="Hello wo