record matching syntax forensics

2003-11-13 Thread John Meacham
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

Re: record matching syntax forensics

2003-11-13 Thread Hal Daume III
Google for 'punning'. It was removed from Haskell (I don't know why -- look at the list archives). But that used to be legal. On Thu, 13 Nov 2003, John Meacham wrote: so I noticed DrIFT was generating code like f Foo{bar} = ... as seemingly a shorthand for f Foo{bar = bar} = ...