Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
binary
Commits
3e0134df
Commit
3e0134df
authored
Jun 10, 2019
by
John Ericson
Browse files
Handle {Int,Word}32Rep
parent
fcd9d3cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Data/Binary/Class.hs
View file @
3e0134df
...
...
@@ -893,6 +893,10 @@ instance Binary RuntimeRep where
put
Word8Rep
=
putWord8
13
put
Int16Rep
=
putWord8
14
put
Word16Rep
=
putWord8
15
#
if
__GLASGOW_HASKELL__
>=
809
put
Int32Rep
=
putWord8
16
put
Word32Rep
=
putWord8
17
#
endif
#
endif
get
=
do
...
...
@@ -915,6 +919,10 @@ instance Binary RuntimeRep where
13
->
pure
Word8Rep
14
->
pure
Int16Rep
15
->
pure
Word16Rep
#
if
__GLASGOW_HASKELL__
>=
809
16
->
pure
Int32Rep
17
->
pure
Word32Rep
#
endif
#
endif
_
->
fail
"GHCi.TH.Binary.putRuntimeRep: invalid tag"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment