[GHC] #10886: Remove the magic from `Any`

GHC ghc-devs at haskell.org
Mon Jul 11 19:50:47 UTC 2016


#10886: Remove the magic from `Any`
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  goldfire
            Type:  task              |               Status:  closed
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2049
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by ezyang):

 The widespread use of GHC.Prim is primarily an accident induced by
 documentation: https://hackage.haskell.org/package/base-4.9.0.0/docs/GHC-
 Exts.html does not list all of the GHC.Prim functions; instead there's
 just a little "module GHC.Prim" deep inside. So if I'm looking up a
 function, the only Haddock page it is going to be on is GHC.Prim, and then
 of course I'm going to import GHC.Prim (if I am not paying close
 attention).

 So I guess what could be done is to change what the magical module is
 called, turn GHC.Prim into a real module, DON'T expose it, and this time
 correctly configure Haddock to inline the   description so that whatever
 your real module is called never gets exposed. A bit of faffing about but
 probably not fundamentally hard.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10886#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list