Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Rinat Striungis
binary
Commits
64b5414b
Commit
64b5414b
authored
6 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
Add support for Int8Rep/Word8Rep added in GHC 8.7
parent
38adf7ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
64b5414b
...
@@ -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#
...
...
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