[project @ 2000-02-15 22:18:16 by panne]
authorpanne <unknown>
Tue, 15 Feb 2000 22:18:54 +0000 (22:18 +0000)
committerpanne <unknown>
Tue, 15 Feb 2000 22:18:54 +0000 (22:18 +0000)
commit06619533d2e402ec10eaec3752c76d310565d0fc
tree6a7cb5f4e7c2b7d4cbe940c915d714fc7643b3ea
parent2c64208b297bea6f102d42df65d39d805b0b234d
[project @ 2000-02-15 22:18:16 by panne]
First steps towards DEPRECATED before Rosebank (12yrs) takes its toll.
Nothing very functional yet, but at least hsc can be compiled and it
still compiles the Prelude.

Parsing the pragma turned out to be a little bit more complicated than
expected, here the comment from Parser.y:

   The place for module deprecation is really too restrictive, but if it
   was allowed at its natural place just before 'module', we get an ugly
   s/r conflict with the second alternative. Another solution would be the
   introduction of a new pragma DEPRECATED_MODULE, but this is not very nice,
   either, and DEPRECATED is only expected to be used by people who really
   know what they are doing. :-)

Net result: Module deprecation is allowed exactly behind the module's
name and nowhere else. I probably have to think a little bit more
about this some day...
ghc/compiler/hsSyn/HsBinds.lhs
ghc/compiler/hsSyn/HsSyn.lhs
ghc/compiler/main/Main.lhs
ghc/compiler/parser/Lex.lhs
ghc/compiler/parser/Parser.y
ghc/compiler/rename/Rename.lhs
ghc/compiler/rename/RnNames.lhs
ghc/compiler/typecheck/TcModule.lhs