packages feed

persistent-template 1.2.0 → 1.2.0.1

raw patch · 2 files changed

+13/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Database/Persist/TH.hs view
@@ -105,7 +105,18 @@         final             | isJust (mEmbedded (fieldType field)) = SqlString'             | isReference = SqlInt64'-            | otherwise = SqlTypeExp st+            | otherwise =+                case fieldType field of+                    -- In the case of lists, we always serialize to a string+                    -- value (via JSON).+                    --+                    -- Normally, this would be determined automatically by+                    -- SqlTypeExp. However, there's one corner case: if there's+                    -- a list of entity IDs, the datatype for the ID has not+                    -- yet been created, so the compiler will fail. This extra+                    -- clause works around this limitation.+                    FTList _ -> SqlString'+                    _ -> SqlTypeExp st          mEmbedded (FTTypeCon Just{} _) = Nothing         mEmbedded (FTTypeCon Nothing n) = let name = HaskellName n in
persistent-template.cabal view
@@ -1,5 +1,5 @@ name:            persistent-template-version:         1.2.0+version:         1.2.0.1 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>