# postgresql-simple

> Mid-level PostgreSQL client library for Haskell

Source: https://talira.ai/catalog/postgresql-simple-s91aeda4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [haskellari](https://talira.ai/orgs/haskellari.md)

postgresql-simple is a mid-level [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) client library for [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md), forked from mysql-simple. It converts rows and fields to and from Haskell types (FromRow, ToRow, FromField, ToField), with modules for LISTEN/NOTIFY notifications, hstore and a SQL quasiquoter, among others. It was written by Bryan O'Sullivan and Leon P Smith and is maintained by Oleg Grenrus in the haskellari organisation.

## Links

- GitHub: https://github.com/haskellari/postgresql-simple

## Problems it solves

- query PostgreSQL from Haskell
- map Postgres rows to Haskell records
- use LISTEN/NOTIFY from a Haskell app

## Features

- FromRow/ToRow and FromField/ToField conversions
- transactions and COPY
- LISTEN/NOTIFY
- SQL quasiquoter

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.27, adoption 0.40, momentum 0.09, community 0.72, backing 0.30, extensibility 0.00.

- 97 GitHub stars
- 61 contributors
- backed by haskellari

Warnings:

- last commit 9 months ago

## Related

- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)

## Sources

[^1]: https://github.com/haskellari/postgresql-simple/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/haskellari/postgresql-simple/blob/master/postgresql-simple.cabal (checked 29 Nov 2026)
