[cvs-nhc98] cvs commit: hat/src/hattools Pattern.hs
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Wed May 24 08:54:18 EDT 2006
malcolm 2006/05/24 05:54:18 PDT
Modified files:
src/hattools Pattern.hs
Log:
Partial fix for a hat-observe pattern involving infix constructors.
Chained constructors like (_ :- _ :+ _ :* _) previously matched only on
the first constructor (giving lots of false positives). Now the
constructors are treated as left assocative, with equal precedence,
which does the right thing for normal lists at least. (A full solution
using known fixities from the trace file would be hugely more complex.)
Revision Changes Path
1.15 +7 -4 hat/src/hattools/Pattern.hs
More information about the Cvs-nhc98
mailing list