diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2017-12-13 10:49:31 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2017-12-13 10:52:10 +0000 |
commit | 321b420f4582d103ca7b304867b916a749712e9f (patch) | |
tree | 2e76c23cca162b2d00da9b52c73f42bc559a0089 /libraries/ghc-prim/GHC/Magic.hs | |
parent | e40db7b1676627f5291b463405338e7b69fa3f69 (diff) | |
download | haskell-321b420f4582d103ca7b304867b916a749712e9f.tar.gz |
Tidy up of wired-in names
Two things here:
* While debugging Trac #14561 I found it hard to understand
ghcPrimIds and magicIds in MkId. This patch adds more
structure and comments.
* I also discovered that ($) no longer needs to be a wiredInId
because we now have levity polymorphism. So I took dollarId
out of MkId; and gave it a levity-polymorphic type in GHC.Base
Diffstat (limited to 'libraries/ghc-prim/GHC/Magic.hs')
-rw-r--r-- | libraries/ghc-prim/GHC/Magic.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/ghc-prim/GHC/Magic.hs b/libraries/ghc-prim/GHC/Magic.hs index 3dbda1dbd4..2d4de6fb70 100644 --- a/libraries/ghc-prim/GHC/Magic.hs +++ b/libraries/ghc-prim/GHC/Magic.hs @@ -25,6 +25,10 @@ module GHC.Magic ( inline, noinline, lazy, oneShot, runRW# ) where +-------------------------------------------------- +-- See Note [magicIds] in MkId.hs +-------------------------------------------------- + import GHC.Prim import GHC.CString () import GHC.Types (RuntimeRep, TYPE) |