hasql-postgresql-types: Integration of "hasql" with "postgresql-types"
Provides automatic encoder and decoder generation for "hasql", supporting all PostgreSQL types defined in the "postgresql-types" package.
Motivation
The standard "hasql" codecs use common Haskell types like Text, DiffTime, UTCTime, etc. However these types do not always map precisely to PostgreSQL types. E.g., the PostgreSQL interval type carries information about months, years and microseconds, while the Haskell DiffTime type only represents a time difference in picoseconds. Such mismatches can lead to data loss or unexpected behavior. The "postgresql-types" library addresses such issues by providing precise Haskell representations for PostgreSQL types. This package integrates it with "hasql". It also provides a class-based polymorphic interface for defining "hasql" Value codecs.
[Skip to Readme]
Downloads
- hasql-postgresql-types-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1, 0.1.0.1 |
|---|---|
| Dependencies | base (>=4.11 && <5), hasql (>=1.10.1 && <1.11), postgresql-types-algebra (>=0.1 && <0.2), ptr-peeker (>=0.1.0.1 && <0.2), ptr-poker (>=0.1.3 && <0.2), tagged (>=0.8.9 && <0.9), text-builder (>=1.0.0.4 && <1.1) [details] |
| License | MIT |
| Copyright | (c) 2026, Nikita Volkov |
| Author | Nikita Volkov <nikita.y.volkov@mail.ru> |
| Maintainer | Nikita Volkov <nikita.y.volkov@mail.ru> |
| Uploaded | by NikitaVolkov at 2026-01-23T09:06:53Z |
| Category | PostgreSQL, Codecs, Hasql |
| Home page | https://github.com/nikita-volkov/hasql-postgresql-types |
| Bug tracker | https://github.com/nikita-volkov/hasql-postgresql-types/issues |
| Source repo | head: git clone https://github.com/nikita-volkov/hasql-postgresql-types |
| Distributions | |
| Downloads | 3 total (3 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |