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

GHC ghc-devs at haskell.org
Mon Jul 11 13:49:20 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 bgamari):

 > Rename `GHC.Prim` to something else, and make `GHC.Prim` a backward
 compatible module that exports `GHC.Exts` (including `Any` and
 `Constraints` for example).

 As Richard mentioned, this is actually backwards. Currently users are
 advised to use `GHC.Exts`, which should re-export anything of use provided
 by `GHC.Prim`. Unfortunately, it seems that this message perhaps isn't as
 widely known as it should be. I'm not sure how else to convey it, however.

 > I thus assumed that `GHC.Prim` was entirely an internal implementation
 artifact

 Indeed it is. In fact, it is quite a magical module (e.g. it has no object
 code; the source Haskell module generated by `mkPrimOps` is actually
 merely for consumption by Haddock), so renaming it as thomie suggests
 would require a fair number of changes in the compiler.

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


More information about the ghc-tickets mailing list