
On Apr 29, 2010, at 04:48 , Magicloud Magiclouds wrote:
Sorry folks, I did not make it clear. The firstDayOfMonth and lastDayOfMonth was defined earlier in let ... in structure.
Doesn't matter. Pattern matches *create* local bindings; they don't pay any attention to existing ones. So you have a match-anything-and- bind-to-"firstDayOfMonth" pattern and a match-anything-and-discard pattern; the original firstDayOfMonth is hidden by the new one created by the pattern match, and since both patterns match the same thing (that is, anything) they overlap. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH