FAQ: How to Use Extensible Records in GHCi

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Tue Mar 30 09:47:05 EST 2004

> 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
Trex> #a ( a='a', b=True )
Trex> #b ( a='a', b=True )

Documentation is here:


Alastair Reid

More information about the Glasgow-haskell-users mailing list