An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

hasql-postgresql-types

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.

Ecosystem
hackage.haskell.org
Latest Release
0.1.0.1
about 1 month ago
Versions
2
Downloads
6 total
Links
Registry hackage.haskell.org
Source Repository
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/hasql-postgresql-types
spec
License MIT
First Release about 1 month ago
Last Synced 25 days ago