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
6c5d1262
Commit
6c5d1262
authored
9 years ago
by
Lennart Kolmodin
Browse files
Options
Downloads
Plain Diff
Merge branch 'phadej/version'
parents
db201353
67ccd539
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
+13
-0
13 additions, 0 deletions
src/Data/Binary/Class.hs
with
13 additions
and
0 deletions
src/Data/Binary/Class.hs
+
13
−
0
View file @
6c5d1262
...
...
@@ -51,6 +51,9 @@ import Data.Void
import
Data.Binary.Put
import
Data.Binary.Get
#
if
!
MIN_VERSION_base
(
4
,
8
,
0
)
import
Control.Applicative
#
endif
import
Control.Monad
import
Data.ByteString.Lazy
(
ByteString
)
...
...
@@ -90,6 +93,8 @@ import qualified Data.Foldable as Fold
import
GHC.Fingerprint
#
endif
import
Data.Version
(
Version
(
..
))
------------------------------------------------------------------------
#
ifdef
GENERICS
...
...
@@ -618,3 +623,11 @@ instance Binary Fingerprint where
x2
<-
get
return
$!
Fingerprint
x1
x2
#
endif
------------------------------------------------------------------------
-- Version
-- | /Since: binary-0.8/
instance
Binary
Version
where
get
=
Version
<$>
get
<*>
get
put
(
Version
br
tags
)
=
put
br
>>
put
tags
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