Skip to content
Snippets Groups Projects
Commit 64b5414b authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Add support for Int8Rep/Word8Rep added in GHC 8.7

parent 38adf7ce
No related branches found
No related tags found
No related merge requests found
...@@ -882,6 +882,10 @@ instance Binary RuntimeRep where ...@@ -882,6 +882,10 @@ instance Binary RuntimeRep where
put AddrRep = putWord8 9 put AddrRep = putWord8 9
put FloatRep = putWord8 10 put FloatRep = putWord8 10
put DoubleRep = putWord8 11 put DoubleRep = putWord8 11
#if __GLASGOW_HASKELL__ >= 807
put Int8Rep = putWord8 12
put Word8Rep = putWord8 13
#endif
get = do get = do
tag <- getWord8 tag <- getWord8
...@@ -898,6 +902,10 @@ instance Binary RuntimeRep where ...@@ -898,6 +902,10 @@ instance Binary RuntimeRep where
9 -> pure AddrRep 9 -> pure AddrRep
10 -> pure FloatRep 10 -> pure FloatRep
11 -> pure DoubleRep 11 -> pure DoubleRep
#if __GLASGOW_HASKELL__ >= 807
12 -> pure Int8Rep
13 -> pure Word8Rep
#endif
_ -> fail "GHCi.TH.Binary.putRuntimeRep: invalid tag" _ -> fail "GHCi.TH.Binary.putRuntimeRep: invalid tag"
-- | @since 0.8.5.0. See #typeable-instances# -- | @since 0.8.5.0. See #typeable-instances#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment