persistable-record 0.6.0.2 → 0.6.0.3
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 +4/−0
- persistable-record.cabal +1/−1
- src/Database/Record/TH.hs +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ <!-- -*- Markdown -*- --> +## 0.6.0.3++- fix example of NameConfig customization.+ ## 0.6.0.2 - bugfix: pass correct table name to macro for field label defintion.
persistable-record.cabal view
@@ -1,5 +1,5 @@ name: persistable-record-version: 0.6.0.2+version: 0.6.0.3 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
@@ -96,9 +96,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