packages feed

persistent-template 2.5 → 2.5.1

raw patch · 2 files changed

+10/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Database/Persist/TH.hs view
@@ -966,7 +966,7 @@        dtd : mconcat fkc `mappend`       ([ TySynD (keyIdName t) [] $             ConT ''Key `AppT` ConT (mkName nameS)-      , InstanceD instanceConstraint clazz $+      , instanceD instanceConstraint clazz $         [ uniqueTypeDec mps t         , keyTypeDec         , keyToValues'@@ -1208,7 +1208,7 @@         let entityT = genericDataType mps name backendT          return $-            InstanceD+            instanceD             [ mkClassP ''PersistQuery [backendT]             , mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) (ConT ''BaseBackend `AppT` backendT)             ]@@ -1252,7 +1252,7 @@               -> Bool -- ^ include PersistStore backend constraint               -> Type -> [Dec] -> Dec typeInstanceD clazz hasBackend typ =-    InstanceD ctx (ConT clazz `AppT` typ)+    instanceD ctx (ConT clazz `AppT` typ)   where     ctx         | hasBackend = [mkClassP ''PersistStore [backendT]]@@ -1600,6 +1600,12 @@ isStrict = IsStrict #endif +instanceD :: Cxt -> Type -> [Dec] -> Dec+#if MIN_VERSION_template_haskell(2,11,0)+instanceD = InstanceD Nothing+#else+instanceD = InstanceD+#endif  -- entityUpdates :: EntityDef -> [(HaskellName, FieldType, IsNullable, PersistUpdate)] -- entityUpdates =
persistent-template.cabal view
@@ -1,5 +1,5 @@ name:            persistent-template-version:         2.5+version:         2.5.1 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>