From 84b79ba577fc51966a81cd9bc39f91c354ac4307 Mon Sep 17 00:00:00 2001 From: Frederick Pringle Date: Tue, 22 Sep 2026 14:16:41 +0200 Subject: [PATCH 1/5] Bump versions to `0.2.0.0` --- bluefin-opaleye/bluefin-opaleye.cabal | 2 +- bluefin-postgresql/bluefin-postgresql.cabal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bluefin-opaleye/bluefin-opaleye.cabal b/bluefin-opaleye/bluefin-opaleye.cabal index 9708f00..d7097f5 100644 --- a/bluefin-opaleye/bluefin-opaleye.cabal +++ b/bluefin-opaleye/bluefin-opaleye.cabal @@ -1,6 +1,6 @@ cabal-version: 3.0 name: bluefin-opaleye -version: 0.1.0.0 +version: 0.2.0.0 synopsis: bluefin support for high-level PostgreSQL operations via Opaleye. description: diff --git a/bluefin-postgresql/bluefin-postgresql.cabal b/bluefin-postgresql/bluefin-postgresql.cabal index 5a78f92..26479a1 100644 --- a/bluefin-postgresql/bluefin-postgresql.cabal +++ b/bluefin-postgresql/bluefin-postgresql.cabal @@ -1,6 +1,6 @@ cabal-version: 3.0 name: bluefin-postgresql -version: 0.1.0.0 +version: 0.2.0.0 synopsis: bluefin support for mid-level PostgreSQL operations. description: From fc32ed203b199e9ff0f831cb45d251fb434e70d0 Mon Sep 17 00:00:00 2001 From: Frederick Pringle Date: Tue, 22 Sep 2026 14:17:04 +0200 Subject: [PATCH 2/5] `bluefin-opaleye`: widen `bluefin-postgresql` dependency to `< 0.3` --- bluefin-opaleye/bluefin-opaleye.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluefin-opaleye/bluefin-opaleye.cabal b/bluefin-opaleye/bluefin-opaleye.cabal index d7097f5..13b91a3 100644 --- a/bluefin-opaleye/bluefin-opaleye.cabal +++ b/bluefin-opaleye/bluefin-opaleye.cabal @@ -35,7 +35,7 @@ common deps , bluefin >= 0.2.7 && < 0.11 , opaleye >= 0.9 && < 0.11 , product-profunctors >= 0.9 && < 0.12 - , bluefin-postgresql >= 0.1 && < 0.2 + , bluefin-postgresql >= 0.1 && < 0.3 , postgresql-simple >= 0.7 && < 0.8 , text >= 2.0 && < 2.2 , containers >= 0.6 && < 0.8 From dee45152928059715c594f4ae33c19e645665349 Mon Sep 17 00:00:00 2001 From: Frederick Pringle Date: Tue, 22 Sep 2026 14:19:39 +0200 Subject: [PATCH 3/5] Update `CHANGELOG`s --- bluefin-opaleye/CHANGELOG.md | 5 ++++- bluefin-postgresql/CHANGELOG.md | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bluefin-opaleye/CHANGELOG.md b/bluefin-opaleye/CHANGELOG.md index 25a2bec..cc897b6 100644 --- a/bluefin-opaleye/CHANGELOG.md +++ b/bluefin-opaleye/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.hask ## [Unreleased] +## [0.2.0.0] - 22.09.2026 + ### Changed - Support `bluefin` versions `0.2.7 && < 0.6` in [#4](https://github.com/fpringle/bluefin-postgresql/pull/4). - Extract common operation counting code to [postgresql-operation-counting](https://github.com/fpringle/postgresql-operation-counting) in [#6](https://github.com/fpringle/bluefin-postgresql/pull/6). Breaking change. @@ -22,5 +24,6 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.hask - Reasonably detailed READMEs. - CI that builds and tests the packages for each version of GHC in the `tested-with` field. -[unreleased]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-opaleye-0.1.0.0...HEAD +[unreleased]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-opaleye-0.2.0.0...HEAD +[0.2.0.0]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-opaleye-0.1.0.0...bluefin-opaleye-0.2.0.0 [0.1.0.0]: https://github.com/fpringle/bluefin-postgresql/releases/tag/bluefin-opaleye-0.1.0.0 diff --git a/bluefin-postgresql/CHANGELOG.md b/bluefin-postgresql/CHANGELOG.md index d960a80..955ae12 100644 --- a/bluefin-postgresql/CHANGELOG.md +++ b/bluefin-postgresql/CHANGELOG.md @@ -7,11 +7,16 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.hask ## [Unreleased] +## [0.2.0.0] - 22.09.2026 + ### Changed - Support `bluefin` versions `0.2.7 && < 0.6` in [#4](https://github.com/fpringle/bluefin-postgresql/pull/4). -- Dynamic `PostgreSQL` effect in [#7](https://github.com/fpringle/bluefin-postgresql/pull/7). - Support `bluefin < 0.11` in [#8](https://github.com/fpringle/bluefin-postgresql/pull/8). + +### Added + +- Dynamic `PostgreSQL` effect in [#7](https://github.com/fpringle/bluefin-postgresql/pull/7). - Support OpenTelemetry instrumentation in [#11](https://github.com/fpringle/bluefin-postgresql/pull/11). ## [0.1.0.0] - 27.02.2026 @@ -23,5 +28,6 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.hask - Reasonably detailed READMEs. - CI that builds and tests the packages for each version of GHC in the `tested-with` field. -[unreleased]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-postgresql-0.1.0.0...HEAD +[unreleased]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-postgresql-0.2.0.0...HEAD +[0.2.0.0]: https://github.com/fpringle/bluefin-postgresql/compare/bluefin-postgresql-0.1.0.0...bluefin-postgresql-0.2.0.0 [0.1.0.0]: https://github.com/fpringle/bluefin-postgresql/releases/tag/bluefin-postgresql-0.1.0.0 From 79b1c8dbe7d98914c2f9eab344aa0613bbee2e3f Mon Sep 17 00:00:00 2001 From: Frederick Pringle Date: Tue, 22 Sep 2026 14:20:06 +0200 Subject: [PATCH 4/5] Remove `-Werror` from `ghc-options` Otherwise Hackage rejects the package --- bluefin-opaleye/bluefin-opaleye.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluefin-opaleye/bluefin-opaleye.cabal b/bluefin-opaleye/bluefin-opaleye.cabal index 13b91a3..80e9ed7 100644 --- a/bluefin-opaleye/bluefin-opaleye.cabal +++ b/bluefin-opaleye/bluefin-opaleye.cabal @@ -27,7 +27,7 @@ tested-with: , GHC == 9.10.2 common warnings - ghc-options: -Wall -Wno-unused-do-bind -Wunused-packages -Werror + ghc-options: -Wall -Wno-unused-do-bind -Wunused-packages common deps build-depends: From 1bc15ec6ca6e65fea59c91003611e91f91dc94a6 Mon Sep 17 00:00:00 2001 From: Frederick Pringle Date: Tue, 22 Sep 2026 15:32:35 +0200 Subject: [PATCH 5/5] Add missing Haddock comment for `runPostgreSQLOT` --- bluefin-postgresql/src/Bluefin/PostgreSQL/Effect.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bluefin-postgresql/src/Bluefin/PostgreSQL/Effect.hs b/bluefin-postgresql/src/Bluefin/PostgreSQL/Effect.hs index aac56c8..1f61e53 100644 --- a/bluefin-postgresql/src/Bluefin/PostgreSQL/Effect.hs +++ b/bluefin-postgresql/src/Bluefin/PostgreSQL/Effect.hs @@ -828,6 +828,13 @@ runPostgreSQL withConn ioe k = returningWithImpl parser q rows = withConnection withConn $ \conn -> effIO ioe $ PSQL.returningWith parser conn q rows #if OTEL +{- | An interpreter for the 'PostgreSQL' effect that runs database operations using OpenTelemetry instrumentation. + +Basically the same as 'runPostgreSQL' except it uses the functions from +[OpenTelemetry.Instrumentation.PostgresqlSimple](https://hackage-content.haskell.org/package/hs-opentelemetry-instrumentation-postgresql-simple/docs/OpenTelemetry-Instrumentation-PostgresqlSimple.html). + +Note that the @enable-opentel@ cabal flag must be set to enable this functionality. +-} runPostgreSQLOT :: forall e1 e2 es b. (HasCallStack, e1 :> es, e2 :> es) =>