Skip to content

Commit 924b5e4

Browse files
committed
Prepare v1.7.0
1 parent 4b2e77d commit 924b5e4

File tree

5 files changed

+38
-67
lines changed

5 files changed

+38
-67
lines changed

Changelog.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
11

2+
<a id='changelog-1.7.0.0'></a>
3+
# 1.7.0.0 — 2025-07-31
4+
5+
## Removed
6+
7+
- Removed support for `network-ip`. We still support `iproute`.
8+
9+
## Added
10+
11+
- Add support for prepared statements. To use prepared statements, simply use `prepare run` instead of `run` with a function that passes the parameters to your statement.
12+
13+
- Added new `Encoder` type with three members: `binary`, which is the Hasql binary encoder, `text` which encodes a type in PostgreSQL's text format (needed for nested arrays) and `quote`, which is the does the thing that the function we previously called `encode` does (i.e., `a -> Opaleye.PrimExpr`).
14+
15+
- Support hasql-1.9
16+
17+
- Add `elem` and `elem1` to `Rel8.Array` for testing if an element is contained in `[]` and `NonEmpty` `Expr`s.
18+
19+
## Changed
20+
21+
- Several changes to `TypeInformation`:
22+
23+
* Changed the `encode` field of `TypeInformation` to be `Encoder a` instead of `a -> Opaleye.PrimExpr`.
24+
25+
* Moved the `delimiter` field of `Decoder` into the top level of `TypeInformation`, as it's not "decoding" specific, it's also used when "encoding".
26+
27+
* Renamed the `parser` field of `Decoder` to `text`, to mirror the `text` field of the new `Encoder` type.
28+
29+
All of this will break any downstream code that uses a completely custom `DBType` implementation, but anything that uses `ReadShow`, `Enum`, `Composite`, `JSONBEncoded` or `parseTypeInformation` will continue working as before (which should cover all common cases).
30+
31+
- Stop exporting `Decoder` and `Encoder` from the `Rel8` module. These can now be found in `Rel8.Decoder` and `Rel8.Encoder`.
32+
33+
- Some changes were made to the `DBEnum` type class:
34+
35+
* `Enumable` was removed as a superclass constraint. It is still used to provide the default implementation of the `DBEnum` class.
36+
* A new method, `enumerate`, was added to the `DBEnum` class (with the default implementation provided by `Enumable`).
37+
38+
This is unlikely to break any existing `DBEnum` instances, it just allows some instances that weren't possible before (e.g., for types that are not `Generic`).
39+
240
<a id='changelog-1.6.0.0'></a>
341
# 1.6.0.0 — 2024-12-13
442

changelog.d/20250428_030850_shane.obrien_prepared.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

changelog.d/20250508_145755_kokobd_hasql_1_9.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

changelog.d/20250512_114707_shane.obrien_fix_DBEnum.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

changelog.d/20250701_105439_shane.obrien_elem.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)