Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
binary
Commits
3e0134df
Commit
3e0134df
authored
6 years ago
by
John Ericson
Browse files
Options
Downloads
Patches
Plain Diff
Handle {Int,Word}32Rep
parent
fcd9d3cb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Data/Binary/Class.hs
+8
-0
8 additions, 0 deletions
src/Data/Binary/Class.hs
with
8 additions
and
0 deletions
src/Data/Binary/Class.hs
+
8
−
0
View file @
3e0134df
...
@@ -893,6 +893,10 @@ instance Binary RuntimeRep where
...
@@ -893,6 +893,10 @@ instance Binary RuntimeRep where
put
Word8Rep
=
putWord8
13
put
Word8Rep
=
putWord8
13
put
Int16Rep
=
putWord8
14
put
Int16Rep
=
putWord8
14
put
Word16Rep
=
putWord8
15
put
Word16Rep
=
putWord8
15
#
if
__GLASGOW_HASKELL__
>=
809
put
Int32Rep
=
putWord8
16
put
Word32Rep
=
putWord8
17
#
endif
#
endif
#
endif
get
=
do
get
=
do
...
@@ -915,6 +919,10 @@ instance Binary RuntimeRep where
...
@@ -915,6 +919,10 @@ instance Binary RuntimeRep where
13
->
pure
Word8Rep
13
->
pure
Word8Rep
14
->
pure
Int16Rep
14
->
pure
Int16Rep
15
->
pure
Word16Rep
15
->
pure
Word16Rep
#
if
__GLASGOW_HASKELL__
>=
809
16
->
pure
Int32Rep
17
->
pure
Word32Rep
#
endif
#
endif
#
endif
_
->
fail
"GHCi.TH.Binary.putRuntimeRep: invalid tag"
_
->
fail
"GHCi.TH.Binary.putRuntimeRep: invalid tag"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment