diff options
author | Richard Eisenberg <rae@richarde.dev> | 2019-07-23 10:13:51 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-29 19:32:16 -0400 |
commit | 9f8cdb358d05192bfdb62a8ee599a652d6dce8ff (patch) | |
tree | 7ab1d0e8bb1b87be247a734160832714419b1190 /libraries | |
parent | c1a06d49593d88c59c2a625154191890a05b90f9 (diff) | |
download | haskell-9f8cdb358d05192bfdb62a8ee599a652d6dce8ff.tar.gz |
Add Note [RuntimeRep and PrimRep] in RepType
Also adds Note [Getting from RuntimeRep to PrimRep], which
deocuments a related thorny process.
This Note addresses #16964, which correctly observes that
documentation for this thorny design is lacking.
Documentation only.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/ghc-prim/GHC/Types.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/ghc-prim/GHC/Types.hs b/libraries/ghc-prim/GHC/Types.hs index 2fc4669ac5..e60e011cf9 100644 --- a/libraries/ghc-prim/GHC/Types.hs +++ b/libraries/ghc-prim/GHC/Types.hs @@ -407,6 +407,8 @@ data RuntimeRep = VecRep VecCount VecElem -- ^ a SIMD vector type | FloatRep -- ^ a 32-bit floating point number | DoubleRep -- ^ a 64-bit floating point number +-- RuntimeRep is intimately tied to TyCon.RuntimeRep (in GHC proper). See +-- Note [RuntimeRep and PrimRep] in RepType. -- See also Note [Wiring in RuntimeRep] in TysWiredIn -- | Length of a SIMD vector type |