hasql-th 0.5.1.1 → 0.5.1.2
raw patch · 3 files changed
+10/−3 lines, 3 filesdep ~hasqlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hasql
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- hasql-th.cabal +2/−2
- src/library/Hasql/TH/Construction/Exp.hs +4/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+# v0.5.1.2++- Added support for Hasql 2.1 while preserving boxed vectors for `vectorStatement`.+ # v0.5.1.1 - Conform to the new `hasql` API (v2.0)
hasql-th.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: hasql-th-version: 0.5.1.1+version: 0.5.1.2 category: Hasql, Database, PostgreSQL, Template Haskell synopsis: Template Haskell utilities for Hasql description:@@ -102,7 +102,7 @@ containers >=0.6 && <0.9, contravariant >=1.5.2 && <2, foldl >=1.4.5 && <2,- hasql >=1.10 && <1.11 || >=2.0 && <2.1,+ hasql >=1.10 && <1.11 || >=2.0 && <2.2, postgresql-syntax >=0.5 && <0.6, template-haskell >=2.8 && <3, template-haskell-compat-v0208 >=0.1.9 && <0.2,
src/library/Hasql/TH/Construction/Exp.hs view
@@ -129,7 +129,10 @@ rowMaybeResultDecoder = AppE (VarE 'Decoders.rowMaybe) rowVectorResultDecoder :: Exp -> Exp-rowVectorResultDecoder = AppE (VarE 'Decoders.rowVector)+rowVectorResultDecoder = AppE (VarE 'boxedRowVector)++boxedRowVector :: Decoders.Row row -> Decoders.Result (Vector row)+boxedRowVector = Decoders.rowVector foldStatement :: Exp -> Exp -> Exp -> Exp foldStatement sql encoder rowDecoder' =