#4879: Deprecate exports
---------------------------------+------------------------------------------
Reporter: basvandijk | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.2.1
Component: Compiler | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonmar):
We have another use for this: since Haskell 2010,
`Foreign.unsafePerformIO` is now deprecated, you are supposed to get it
from `System.IO.Unsafe.unsafePerformIO`. I didn't want to make it a
distinct identifier, because that would cause name clashes, but I would
like to deprecate uses of `Foreign.unsafePerformIO`.
In other words, I would like a warning to be emitted iff a compilation
error would ensue if the deprecated export was removed.
So, if the user imports `Foreign.unsafePerformIO` by name, the warning
would be generated.
If `unsafePerformIO` is in scope via two routes and is used somehow,
that's ok - no warning needs to be generated. If it was in scope via
multiple routes and all routes were deprecated, then I expect we should
emit all the warnings.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4879#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs