packages feed

persistent 1.2.0.1 → 1.2.0.2

raw patch · 2 files changed

+4/−1 lines, 2 files

Files

Database/Persist/Class/PersistField.hs view
@@ -239,6 +239,9 @@     fromPersistValue (PersistText t) = fromPersistValue (PersistByteString $ TE.encodeUtf8 t)     fromPersistValue (PersistByteString bs)         | Just values <- A.decode' (L.fromChunks [bs]) = fromPersistList values+    -- avoid the need for a migration to fill in empty lists.+    -- also useful when Persistent is not the only one filling in the data+    fromPersistValue (PersistNull) = Right []     fromPersistValue x = Left $ T.pack $ "Expected PersistList, received: " ++ show x  instance (Ord a, PersistField a) => PersistField (S.Set a) where
persistent.cabal view
@@ -1,5 +1,5 @@ name:            persistent-version:         1.2.0.1+version:         1.2.0.2 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>