#4879: Deprecate exports
---------------------------------+------------------------------------------
Reporter: basvandijk | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by igloo):
You can't do this:
{{{
module Q (foo) where
foo :: ()
foo = ()
}}}
{{{
module W (foo) where
import Q
{-# DEPRECATED foo "Some reason" #-}
}}}
{{{
$ ghc --make W.hs
[1 of 2] Compiling Q ( Q.hs, Q.o )
[2 of 2] Compiling W ( W.hs, W.o )
W.hs:6:16:
The deprecation for `foo' lacks an accompanying binding
(You cannot give a deprecation for an imported value)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4879#comment:2>
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