hasql-postgresql-types
@
0.2
Provides automatic encoder and decoder generation for "hasql", supporting all PostgreSQL types defined in the "postgresql-types" package. 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.
9
Dependencies
-
base
>=4.11 && <5 -
hasql
>=1.10.3 && <1.11 -
hasql-mapping
>=0.1 && <0.2 -
postgresql-types
>=0.1 && <0.2 -
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
Links
| Registry | hackage.haskell.org |
| Download | Download |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Version Details
| PURL |
pkg:hackage/hasql-postgresql-types@0.2
spec |