binary-orphans 0.1.7.0 → 0.1.8.0
raw patch · 3 files changed
+10/−2 lines, 3 filesdep ~QuickCheckdep ~aesondep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheck, aeson, base, binary, nats, semigroups, tagged, tasty, tasty-quickcheck, void
API changes (from Hackage documentation)
+ Data.Binary.Orphans: instance Data.Binary.Class.Binary Data.Time.LocalTime.LocalTime.ZonedTime
Files
- CHANGELOG.md +3/−0
- binary-orphans.cabal +2/−2
- src/Data/Binary/Orphans.hs +5/−0
CHANGELOG.md view
@@ -1,3 +1,6 @@+- 0.1.8.0+ - `ZonedTime` instance (by @mstksg)+ - 0.1.7.0 - GHC-8.2 support - `SystemTime` instance (`time-1.8`)
binary-orphans.cabal view
@@ -1,5 +1,5 @@ name: binary-orphans-version: 0.1.7.0+version: 0.1.8.0 synopsis: Orphan instances for binary description: `binary-orphans` defines orphan instances for types in some popular packages. category: Web@@ -41,7 +41,7 @@ , vector-binary-instances >=0.2.1.0 && <0.3 if !impl(ghc >= 8.0) build-depends:- semigroups >=0.16.2.2 && <0.18.3+ semigroups >=0.16.2.2 && <0.18.4 if !impl(ghc >= 7.10) build-depends: void >=0.7 && <0.8
src/Data/Binary/Orphans.hs view
@@ -159,6 +159,11 @@ get = liftM2 Time.LocalTime get get put (Time.LocalTime d tod) = put d >> put tod +-- | /Since: binary-orphans-0.1.8.0/+instance Binary Time.ZonedTime where+ get = liftM2 Time.ZonedTime get get+ put (Time.ZonedTime t z) = put t >> put z+ -- | /Since: binary-orphans-0.1.4.0/ instance Binary Time.AbsoluteTime where get = fmap (flip Time.addAbsoluteTime Time.taiEpoch) get