Skip to content

Qualified `as' rejected

GHC (4.08, 4.09) rejects `as' as a qualified identifier.  The cause appears to be that Lex.lhs:haskellKeywordsFM has two too many entries.  In particular `as' and `hiding' shouldn't be there - both are specialids, not reserved ids (see section 2.4 of the Haskell98 report).

I'm puzzled why `as' is not also rejected when it is unqualified, because haskellKeywordsFM seems to also be used to filter out unqualified ids.  I sense the possibility of magic, so I hesitate to commit what seems to be the obvious fix (remove `as' and `hiding' from haskellKeywordsFM).
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Compiler (Parser)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information