binary-tagged 0.1.3.0 → 0.1.3.1
raw patch · 3 files changed
+29/−23 lines, 3 filesdep ~aesondep ~basedep ~binary
Dependency ranges changed: aeson, base, binary, time
Files
- CHANGELOG.md +2/−0
- binary-tagged.cabal +20/−20
- src/Data/Binary/Tagged.hs +7/−3
CHANGELOG.md view
@@ -1,3 +1,5 @@+- 0.1.3.1 (2016-02-10)+ - Support GHC 8.0 - 0.1.3.0 (2015-10-24) - Support `generics-sop-0.2` - 0.1.2.0 (2015-10-06)
binary-tagged.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: binary-tagged-version: 0.1.3.0+version: 0.1.3.1 synopsis: Tagged binary serialisation. description: Check <https://github.com/phadej/binary-tagged#readme README on Github> category: Web@@ -13,7 +13,7 @@ maintainer: Oleg Grenrus <oleg.grenrus@iki.fi> license: BSD3 license-file: LICENSE-tested-with: GHC==7.8.4, GHC==7.10.2+tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.1 build-type: Simple cabal-version: >= 1.10 @@ -30,19 +30,19 @@ src ghc-options: -Wall build-depends:- base >=4.7 && <4.9- , generics-sop >=0.1 && <0.3- , SHA >=1.6 && <1.7+ base >=4.7 && <4.10+ , aeson >=0.8 && <0.12 , array >=0.5 && <0.6- , aeson >=0.8 && <0.11- , binary >=0.7 && <0.8+ , binary >=0.7 && <0.9 , bytestring >=0.10 && <0.11 , containers >=0.5 && <0.6+ , generics-sop >=0.1 && <0.3 , hashable >=1.2 && <1.3 , scientific >=0.3 && <0.4+ , SHA >=1.6 && <1.7 , tagged >=0.7 && <0.9 , text >=1.2 && <1.3- , time >=1.4 && <1.6+ , time >=1.4 && <1.7 , unordered-containers >=0.2 && <0.3 , vector >=0.10 && <0.12 exposed-modules:@@ -56,19 +56,19 @@ test ghc-options: -Wall build-depends:- base >=4.7 && <4.9- , generics-sop >=0.1 && <0.3- , SHA >=1.6 && <1.7+ base >=4.7 && <4.10+ , aeson >=0.8 && <0.12 , array >=0.5 && <0.6- , aeson >=0.8 && <0.11- , binary >=0.7 && <0.8+ , binary >=0.7 && <0.9 , bytestring >=0.10 && <0.11 , containers >=0.5 && <0.6+ , generics-sop >=0.1 && <0.3 , hashable >=1.2 && <1.3 , scientific >=0.3 && <0.4+ , SHA >=1.6 && <1.7 , tagged >=0.7 && <0.9 , text >=1.2 && <1.3- , time >=1.4 && <1.6+ , time >=1.4 && <1.7 , unordered-containers >=0.2 && <0.3 , vector >=0.10 && <0.12 , binary-tagged@@ -90,19 +90,19 @@ bench ghc-options: -Wall build-depends:- base >=4.7 && <4.9- , generics-sop >=0.1 && <0.3- , SHA >=1.6 && <1.7+ base >=4.7 && <4.10+ , aeson >=0.8 && <0.12 , array >=0.5 && <0.6- , aeson >=0.8 && <0.11- , binary >=0.7 && <0.8+ , binary >=0.7 && <0.9 , bytestring >=0.10 && <0.11 , containers >=0.5 && <0.6+ , generics-sop >=0.1 && <0.3 , hashable >=1.2 && <1.3 , scientific >=0.3 && <0.4+ , SHA >=1.6 && <1.7 , tagged >=0.7 && <0.9 , text >=1.2 && <1.3- , time >=1.4 && <1.6+ , time >=1.4 && <1.7 , unordered-containers >=0.2 && <0.3 , vector >=0.10 && <0.12 , binary-tagged
src/Data/Binary/Tagged.hs view
@@ -117,7 +117,6 @@ -- Instances import Data.Int-import qualified Data.Aeson as Aeson import qualified Data.Array.IArray as Array import qualified Data.Array.Unboxed as Array import qualified Data.Fixed as Fixed@@ -138,6 +137,9 @@ import qualified Data.Vector.Unboxed as U import qualified Data.Version as Version +#ifdef MIN_VERSION_aeson+import qualified Data.Aeson as Aeson+#endif -- | 'Binary' serialisable class, which tries to be less error-prone to data structure changes. --@@ -368,8 +370,8 @@ -- Instances instance HasStructuralInfo Bool where structuralInfo = ghcNominalType-instance HasStructuralInfo Char where structuralInfo = ghcNominalType-instance HasStructuralInfo Int where structuralInfo = ghcNominalType+instance HasStructuralInfo Char where structuralInfo _ = NominalType "Char"+instance HasStructuralInfo Int where structuralInfo _ = NominalType "Int" instance HasStructuralInfo Word where structuralInfo _ = NominalType "Word" instance HasStructuralInfo Integer where structuralInfo _ = NominalType "Integer" @@ -608,8 +610,10 @@ instance HasSemanticVersion Time.TimeOfDay instance HasSemanticVersion Time.LocalTime +#ifdef MIN_VERSION_aeson -- Value -- TODO: derive sop instance HasStructuralInfo Aeson.Value where structuralInfo _ = NominalType "Aeson.Value" instance HasSemanticVersion Aeson.Value+#endif