packages feed

persistent-template 2.8.1 → 2.8.2

raw patch · 3 files changed

+10/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Database.Persist.TH: fieldError :: Text -> Text -> Text -> Text

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ ## Unreleased changes +## 2.8.2++* Add `fieldError` to the export list of `Database.Persist.TH` [#1008](https://github.com/yesodweb/persistent/pull/1008)+ ## 2.8.1  * Let the user pass instances that will be derived for record and for key types (https://github.com/yesodweb/persistent/pull/990
Database/Persist/TH.hs view
@@ -47,6 +47,7 @@     , lensPTH     , parseReferences     , embedEntityDefs+    , fieldError     , AtLeastOneUniqueKey(..)     , OnlyOneUniqueKey(..)     ) where@@ -1015,6 +1016,10 @@         let fieldName = (unHaskellName (fieldHaskell field))         in [|mapLeft (fieldError tableName fieldName) . fromPersistValue|] +-- |  Render an error message based on the @tableName@ and @fieldName@ with+-- the provided message.+--+-- @since 2.8.2 fieldError :: Text -> Text -> Text -> Text fieldError tableName fieldName err = mconcat     [ "Couldn't parse field `"
persistent-template.cabal view
@@ -1,5 +1,5 @@ name:            persistent-template-version:         2.8.1+version:         2.8.2 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>