postgresql-orm 0.3.0 → 0.3.1
raw patch · 2 files changed
+5/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Database.PostgreSQL.ORM.Model: instance Typeable2 GDBRef
+ Database.PostgreSQL.ORM.Model: instance Constructor C1_0DBKey
+ Database.PostgreSQL.ORM.Model: instance Constructor C1_0GDBRef
+ Database.PostgreSQL.ORM.Model: instance Constructor C1_1DBKey
+ Database.PostgreSQL.ORM.Model: instance Datatype D1DBKey
+ Database.PostgreSQL.ORM.Model: instance Datatype D1GDBRef
+ Database.PostgreSQL.ORM.Model: instance Generic (GDBRef reftype table)
+ Database.PostgreSQL.ORM.Model: instance Generic DBKey
+ Database.PostgreSQL.ORM.Model: instance Typeable GDBRef
Files
Database/PostgreSQL/ORM/Model.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-}@@ -155,7 +156,7 @@ -- If you wish to store a `Model`'s primary key as a reference in -- another 'Model', do not copy the 'DBKey' structure. Use 'mkDBRef' -- to convert the `Model`'s primary key to a foreign key reference.-data DBKey = DBKey !DBKeyType | NullKey deriving (Data, Typeable)+data DBKey = DBKey !DBKeyType | NullKey deriving (Data, Typeable, Generic) instance A.ToJSON DBKey where toJSON NullKey = A.Null@@ -197,7 +198,7 @@ -- phantom type denoting the flavor of reference ('NormalRef' or -- 'UniqueRef'). newtype GDBRef reftype table = DBRef DBKeyType- deriving (Eq, Data, Typeable, Num, Integral, Real, Ord, Enum, Bounded)+ deriving (Eq, Data, Typeable, Num, Integral, Real, Ord, Enum, Bounded, Generic) instance A.ToJSON (GDBRef t a) where toJSON (DBRef k) = A.toJSON k@@ -817,7 +818,7 @@ DEGENERATE((FromField a, FromField b), (a, b)) DEGENERATE((FromField a, FromField b, FromField c), (a, b, c)) DEGENERATE((FromField a, FromField b, FromField c, FromField d), (a, b, c, d))-DEGENERATE((FromField a, FromField b, FromField c, FromField d, FromField e),+DEGENERATE((FromField a, FromField b, FromField c, FromField d, FromField e), \ (a, b, c, d, e)) #undef DEGEN_ERR
postgresql-orm.cabal view
@@ -1,5 +1,5 @@ name: postgresql-orm-version: 0.3.0+version: 0.3.1 cabal-version: >= 1.14 build-type: Simple license: GPL