packages feed

persistable-record 0.5.2.1 → 0.5.2.2

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ <!-- -*- Markdown -*- --> +## 0.5.2.2++- fix example of NameConfig customization.+ ## 0.5.2.1  - bugfix: pass correct table name to macro for field label defintion.
persistable-record.cabal view
@@ -1,5 +1,5 @@ name:                persistable-record-version:             0.5.2.1+version:             0.5.2.2 synopsis:            Binding between SQL database values and haskell records. description:         This package contiains types to represent table constraints and                      interfaces to bind between SQL database values and Haskell records.
src/Database/Record/TH.hs view
@@ -104,9 +104,9 @@ --   use record update syntax: -- -- > defaultNameConfig--- >   { recordTypeName = \schema table -> varNameWithPrefix table schema+-- >   { recordTypeName = \schema table -> varCamelcaseName $ schema ++ "_" ++ table -- >     ^ append the table name after the schema name. e.g. "schemaTable"--- >   , columnName = \table column -> varNameWithPrefix column table+-- >   , columnName = \table column -> varCamelcaseName $ table ++ "_" ++ column -- >     ^ append the column name after the table name. e.g. "tableColumn" -- >   } defaultNameConfig :: NameConfig