[nhc-bugs] Problems with qualified and hiding
Malcolm Wallace
Malcolm.Wallace@cs.york.ac.uk
Mon, 12 Nov 2001 14:46:35 +0000
> If I have something like
> > foo hiding = hiding
> or
> > foo qualified = qualified
> then nhc98 gives this error:
> 6:3 Found foo but expected a {-end-of-definition-or-EOF-}
Ok, nhc98 was treating these as keywords, when they are really
`specialids' or whatever the current name is. Anyway, they should
only be treated specially in a particular context, and are otherwise
valid variable names. (The pseudo-keyword `interface' also belongs
to this class that nhc98 was treating wrongly.)
A patch to fix the problem is available at
ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/patch-1.10-keywords
(It is longer than the usual patches, hence I'm not posting it to
the list. By the way, _all_ the patches posted on the list are also
available from the same FTP directory.)
Regards,
Malcolm