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
6c5d1262
Commit
6c5d1262
authored
Nov 11, 2015
by
Lennart Kolmodin
Browse files
Merge branch 'phadej/version'
parents
db201353
67ccd539
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Data/Binary/Class.hs
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
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