persistent 2.14.3.2 → 2.14.4.0
raw patch · 3 files changed
+30/−1 lines, 3 filesdep ~deepseqPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: deepseq
API changes (from Hackage documentation)
+ Database.Persist.PersistValue: instance Control.DeepSeq.NFData Database.Persist.PersistValue.PersistValue
Files
- ChangeLog.md +5/−0
- Database/Persist/PersistValue.hs +22/−0
- persistent.cabal +3/−1
ChangeLog.md view
@@ -1,5 +1,10 @@ # Changelog for persistent +## 2.14.4.0++* [#1440](https://github.com/yesodweb/persistent/pull/1440)+ * Defined NFData PersistValue+ ## 2.14.3.2 * [#1446](https://github.com/yesodweb/persistent/pull/1446)
Database/Persist/PersistValue.hs view
@@ -11,6 +11,7 @@ , LiteralType(..) ) where +import Control.DeepSeq import qualified Data.ByteString.Base64 as B64 import qualified Data.Text.Encoding as TE import qualified Data.ByteString.Char8 as BS8@@ -69,6 +70,27 @@ -- -- @since 2.12.0.0 deriving (Show, Read, Eq, Ord)++-- |+-- @since 2.14.4.0+instance NFData PersistValue where+ rnf val = case val of+ PersistText txt -> rnf txt+ PersistByteString bs -> rnf bs+ PersistInt64 i -> rnf i+ PersistDouble d -> rnf d+ PersistRational q -> rnf q+ PersistBool b -> rnf b+ PersistDay d -> rnf d+ PersistTimeOfDay t -> rnf t+ PersistUTCTime t -> rnf t+ PersistNull -> ()+ PersistList vals -> rnf vals+ PersistMap vals -> rnf vals+ PersistObjectId bs -> rnf bs+ PersistArray vals -> rnf vals+ PersistLiteral_ ty bs -> ty `seq` rnf bs+ -- | A type that determines how a backend should handle the literal. --
persistent.cabal view
@@ -1,5 +1,5 @@ name: persistent-version: 2.14.3.2+version: 2.14.4.0 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -24,6 +24,7 @@ , bytestring >= 0.10 , conduit >= 1.2.12 , containers >= 0.5+ , deepseq , fast-logger >= 2.4 , http-api-data >= 0.3 , lift-type >= 0.1.0.0 && < 0.2.0.0@@ -127,6 +128,7 @@ , bytestring , conduit , containers+ , deepseq , fast-logger , hspec >= 2.4 , http-api-data