summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-06-10 09:32:50 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-07-17 12:20:26 -0400
commit0a9b77b8b4313a9ffe7483cbc286d249fda59e75 (patch)
treeb2f463b84513f965b3bf2b505a443230d6fc0364 /libraries
parent52f755aa203c55e44dce79c9ac1abc245977b000 (diff)
downloadhaskell-0a9b77b8b4313a9ffe7483cbc286d249fda59e75.tar.gz
Create {Int,Word}32Rep
This prepares the way for making Int32# and Word32# the actual size they claim to be. Updates binary submodule for (de)serializing the new runtime reps.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/Data/Typeable/Internal.hs2
m---------libraries/binary0
-rw-r--r--libraries/ghc-prim/GHC/Types.hs2
3 files changed, 4 insertions, 0 deletions
diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index 1775871034..5c087272fa 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -666,10 +666,12 @@ runtimeRepTypeRep r =
IntRep -> rep @'IntRep
Int8Rep -> rep @'Int8Rep
Int16Rep -> rep @'Int16Rep
+ Int32Rep -> rep @'Int32Rep
Int64Rep -> rep @'Int64Rep
WordRep -> rep @'WordRep
Word8Rep -> rep @'Word8Rep
Word16Rep -> rep @'Word16Rep
+ Word32Rep -> rep @'Word32Rep
Word64Rep -> rep @'Word64Rep
AddrRep -> rep @'AddrRep
FloatRep -> rep @'FloatRep
diff --git a/libraries/binary b/libraries/binary
-Subproject fcd9d3cb2a942c54347d28bcb80a1b46d2d7d67
+Subproject e26b50021c9fdc3d82cd6ed2ee2edb819c7d048
diff --git a/libraries/ghc-prim/GHC/Types.hs b/libraries/ghc-prim/GHC/Types.hs
index 7d4e62c381..2fc4669ac5 100644
--- a/libraries/ghc-prim/GHC/Types.hs
+++ b/libraries/ghc-prim/GHC/Types.hs
@@ -396,10 +396,12 @@ data RuntimeRep = VecRep VecCount VecElem -- ^ a SIMD vector type
| IntRep -- ^ signed, word-sized value
| Int8Rep -- ^ signed, 8-bit value
| Int16Rep -- ^ signed, 16-bit value
+ | Int32Rep -- ^ signed, 32-bit value
| Int64Rep -- ^ signed, 64-bit value (on 32-bit only)
| WordRep -- ^ unsigned, word-sized value
| Word8Rep -- ^ unsigned, 8-bit value
| Word16Rep -- ^ unsigned, 16-bit value
+ | Word32Rep -- ^ unsigned, 32-bit value
| Word64Rep -- ^ unsigned, 64-bit value (on 32-bit only)
| AddrRep -- ^ A pointer, but /not/ to a Haskell value
| FloatRep -- ^ a 32-bit floating point number