record matching syntax forensics

John Meacham john at
Thu Nov 13 17:18:24 EST 2003

so I noticed DrIFT was generating code like

f Foo{bar} = ...
as seemingly a shorthand for
f Foo{bar = bar} = ...

which does not seem to work with current compilers. I fixed this in
2.0.2 but was curious why it was generating code like that in the first
place. it appears to be illegal looking at the haskell report and I was
uncertain who wrote the derive rules in the first place so thought I
would ask here.

John Meacham - California Institute of Technology, Alum. - john at

More information about the Haskell-Cafe mailing list