bson-generic 0.0.8.1 → 0.0.9
raw patch · 1 files changed
+7/−6 lines, 1 filesdep ~basedep ~ghc-primdep ~textPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, ghc-prim, text
API changes (from Hackage documentation)
- Data.Bson.Generic: instance GHC.Generics.Constructor Data.Bson.Generic.C1_0ObjectKey
- Data.Bson.Generic: instance GHC.Generics.Datatype Data.Bson.Generic.D1ObjectKey
- Data.Bson.Generic: instance GHC.Generics.Selector Data.Bson.Generic.S1_0_0ObjectKey
- Data.Bson.Generic: class FromBSON a where fromBSON doc = maybe Nothing (Just . to) (genericFromBSON (constructorCount (undefined :: a)) doc)
+ Data.Bson.Generic: class FromBSON a
- Data.Bson.Generic: class ToBSON a where toBSON a = genericToBSON (constructorCount a) (from a)
+ Data.Bson.Generic: class ToBSON a
- Data.Bson.Generic: fromBSON :: FromBSON a => Document -> Maybe a
+ Data.Bson.Generic: fromBSON :: (FromBSON a, Generic a, GConstructorCount (Rep a), GFromBSON (Rep a)) => Document -> Maybe a
- Data.Bson.Generic: toBSON :: ToBSON a => a -> Document
+ Data.Bson.Generic: toBSON :: (ToBSON a, Generic a, GConstructorCount (Rep a), GToBSON (Rep a)) => a -> Document
Files
- bson-generic.cabal +7/−6
bson-generic.cabal view
@@ -1,5 +1,5 @@ name: bson-generic-version: 0.0.8.1+version: 0.0.9 synopsis: Generic functionality for BSON description: This package offers easy conversion from and to BSON data type for most of user defined data types. The interface may change at will.@@ -9,20 +9,21 @@ maintainer: the.palmik+maintainer@gmail.com category: Data build-type: Simple-cabal-version: >= 1.8+cabal-version: >= 1.10 stability: experimental library+ default-language: Haskell2010 hs-source-dirs: src exposed-modules: Data.Bson.Generic build-depends:- base == 4.8.*- , bson == 0.3.*- , ghc-prim == 0.4.*- , text == 1.2.1.*+ base >= 4.8 && < 5+ , bson >= 0.3 && < 0.4+ , ghc-prim >= 0.4 && < 0.6+ , text >= 1.2.1 && < 1.3 ghc-options: -O2