DEPRECATED not re-exported
Simon Peyton-Jones
simonpj at microsoft.com
Wed Dec 31 06:26:12 EST 2003
I agree. Your message caught me at a moment when I needed some
displacement activity, so I've implemented a fix. It was a bit less
trivial than I'd expected, but not hard.
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Sven Panne
| Sent: 30 December 2003 13:22
| To: GHC Bugs
| Subject: DEPRECATED not re-exported
|
| There seems to be a small problem with the DEPRECATED pragma (both on
| the HEAD and the 6.2 release branch), see e.g. the deprecated function
| withObject:
|
| -- Main1.hs --------------------------------------------------
| import Foreign.Marshal
| main = withObject 'a' print
| -- Main2.hs --------------------------------------------------
| import Foreign.Marshal.Utils
| main = withObject 'a' print
| --------------------------------------------------------------
| panne at jeanluc:~> ghc Main1.hs
| panne at jeanluc:~> ghc Main2.hs
|
| Main2.hs:2:7: Warning: Variable `withObject' is deprecated: use `with'
instead
| --------------------------------------------------------------
|
| It looks like deprecations are not re-exported, but I can't remember
| if this was a conscious design decision or simply happens by accident.
| Nevertheless, with the arrival of hierarchical modules, the current
| behaviour makes this pragma almost useless IMHO. Other opinions?
|
| Cheers,
| S.
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list