persistent-template 2.5.2 → 2.5.3
raw patch · 3 files changed
+11/−5 lines, 3 filesnew-uploaderPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Database.Persist.TH: parseReferences :: PersistSettings -> Text -> Q Exp
Files
- ChangeLog.md +4/−0
- Database/Persist/TH.hs +5/−3
- persistent-template.cabal +2/−2
ChangeLog.md view
@@ -1,3 +1,7 @@+## 2.5.3++* Exposed `parseReferences` to allow custom QuasiQuoters+ ## 2.5.2 * Fix incorrect `ToJSON`/`FromJSON` instance generation for generic
Database/Persist/TH.hs view
@@ -45,6 +45,7 @@ -- * Internal , packPTH , lensPTH+ , parseReferences ) where import Prelude hiding ((++), take, concat, splitAt, exp)@@ -121,6 +122,7 @@ -- calls parse to Quasi.parse individual entities in isolation -- afterwards, sets references to other entities+-- | @since 2.5.3 parseReferences :: PersistSettings -> Text -> Q Exp parseReferences ps s = lift $ map (mkEntityDefSqlTypeExp embedEntityMap entMap) noCycleEnts@@ -337,7 +339,7 @@ , mpsGeneric :: Bool -- ^ Create generic types that can be used with multiple backends. Good for -- reusable code, but makes error messages harder to understand. Default:- -- True.+ -- False. , mpsPrefixFields :: Bool -- ^ Prefix field names with the model name. Default: True. , mpsEntityJSON :: Maybe EntityJSON@@ -355,7 +357,7 @@ -- -- Default: False --- -- Since 1.3.1+ -- @since 1.3.1 } data EntityJSON = EntityJSON@@ -385,7 +387,7 @@ -- | Same as 'sqlSettings'. ----- Since 1.1.1+-- @since 1.1.1 sqlOnlySettings :: MkPersistSettings sqlOnlySettings = sqlSettings {-# DEPRECATED sqlOnlySettings "use sqlSettings" #-}
persistent-template.cabal view
@@ -1,5 +1,5 @@ name: persistent-template-version: 2.5.2+version: 2.5.3 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -23,7 +23,7 @@ , text >= 0.5 , transformers >= 0.2 && < 0.6 , containers- , aeson >= 0.7 && < 1.2+ , aeson >= 0.7 && < 1.3 , aeson-compat >= 0.3.2.0 && < 0.4 , monad-logger , unordered-containers