#3870: Avoid Haddock-links to the Prelude
---------------------------------+------------------------------------------
    Reporter:  waern             |       Owner:                   
        Type:  feature request   |      Status:  new              
    Priority:  normal            |   Component:  Documentation    
     Version:  6.12.1            |    Keywords:                   
          Os:  Unknown/Multiple  |    Testcase:                   
Architecture:  Unknown/Multiple  |     Failure:  Documentation bug
---------------------------------+------------------------------------------

Comment(by waern):

 Replying to [comment:1 ross]:
 > Isn't the reason Prelude.Int is chosen that GHC.Base is hidden, because
 it isn't part of the public interface of the package?

 GHC.Base is not chosen because it is hidden, but that leaves the choice to
 either Prelude.Int or Data.Int. Haddock prefers the module that is closest
 to the original module in the dependency tree. Since both Prelude.Int and
 Data.Int directly imports GHC.Base, they are at the same level of the
 dependency tree and thus Haddock has to make an arbitrary choice. If
 Prelude had imported Data.Int and not GHC.Base (just for illustration;
 such a restructuring may be hard to do since Prelude imports many more
 things via GHC.Base), the link would go to Data.Int.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3870#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

Reply via email to