Haskell Postgresql

Open-source Haskell projects categorized as Postgresql

Top 23 Haskell Postgresql Projects

  • postgrest

    REST API for any Postgres database

    Project mention: Ask HN: Popular open source tool originally written in Haskell? | news.ycombinator.com | 2024-02-10
  • ihp

    🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

    Project mention: Ask HN: Why are all of the best back end web frameworks dynamically typed? | news.ycombinator.com | 2023-10-05

    I found IHP straightforward:


    despite not remembering much haskell!

    This assumes you can get past nix for the install.

    I find IHP well-designed. I just wish the licensing scheme were more transparent.

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

  • beam

    A type-safe, non-TH Haskell SQL library and ORM (by haskell-beam)

    Project mention: How to use PostgreSQL with Haskell: beam | dev.to | 2023-10-02

    Beam “is a highly-general library for accessing any kind of database with Haskell”. Beam makes extensive use of GHC's Generics mechanism — no Template Haskell.

  • hasql

    The fastest PostgreSQL libpq-based driver for Haskell

    Project mention: haskell todo list app (beginner) | /r/haskell | 2023-06-08

    for the database I would use postgresql, I found a library here https://github.com/nikita-volkov/hasql

  • selda

    A type-safe, high-level SQL library for Haskell

    Project mention: How to use PostgreSQL with Haskell: selda | dev.to | 2023-10-02

    Selda “is a Haskell library for interacting with SQL-based relational databases” (PostgreSQL or SQLite). “The library was inspired by LINQ and Opaleye.”

  • squeal-postgresql

    Squeal, a deep embedding of SQL in Haskell

    Project mention: Choosing the right abstraction level for SQLite library. | /r/haskell | 2023-03-17

    You may want to have a look at squeal that someone mentioned the other day in the comments of this post.

  • postgresql-simple

    Mid-level client library for accessing PostgreSQL from Haskell

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • rel8

    Hey! Hey! Can u rel8?

    Project mention: Choosing the right abstraction level for SQLite library. | /r/haskell | 2023-03-17

    I also mention https://github.com/circuithub/rel8 on posts like these since I think it should be more well-known.

  • hasql-th

    Template Haskell utilities for Hasql

    Project mention: How to use PostgreSQL with Haskell: hasql | dev.to | 2023-10-03

    Hasql is an ecosystem of libraries. To keep it simple, let’s limit ourselves to core hasql, hasql-transaction, and hasql-th. We’re using hasql published in 2023.

  • postgresql-typed

    Haskell PostgreSQL library with compile-time type inference

  • postgresql-orm

    An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.

  • dbmigrations

    A library for the creation, management, and installation of schema updates for relational databases.

  • shopping-cart-haskell

    :gem: Haskell version of the Shopping Cart application developed in the book "Practical FP in Scala: A hands-on approach"

  • postgresql-transactional

    Transactional monadic actions on top of PostgreSQL.

  • ArkhamHorror

    A rules-compliant browser based version of Arkham Horror: The Card Game.

  • postgresql-simple-named

    :question: Implementation of named parameters for `postgresql-simple` library

  • codd

    Codd is a simple-to-use CLI tool that applies plain postgres SQL migrations with strong and automatic cross-environment schema equality checks (by mzabani)

    Project mention: Announcing codd - a tool to apply postgres SQL migrations | /r/haskell | 2023-03-03

    Some possible upsides of codd: - No need to manually write verification SQL. Codd will update schema representation files when you codd add some-migration.sql and will compare those to the actual schema when deploying (I'd say in ways which would be very hard to replicate manually, see an example of what codd checks, giving you the option to rollback if they don't match or proceed but log non-matching db objects. - It seems to be much simpler to set codd up. You need 3 env vars to start, a folder to store your migrations and a self-contained statically linked executable. Just codd add migration.sql your way in after that - This might be very wrong as I couldn't find it explicitly documented, but this GH issue suggests it's not so simple to apply all pending migrations in a single transaction with Sqitch? Maybe it requires some bundling or something along those lines and then it's fine, though. In any case, codd will do this automatically when you run codd up (provided postgresql allows it).

  • postgresql-pure

    a PostgreSQL client library implemented with pure Haskell

  • fts

    :mag: Postgres full-text search (fts) (by gvolpe)

  • refurb

    Database maintenance tool support

  • postgresql-libpq

    Low-level Haskell bindings for libpq

  • postgresql-resilient

    Automatic re-connection support for PostgreSQL.

  • postgresql-simple-queue

    A PostgreSQL backed queue

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-10.

Haskell Postgresql related posts


What are some of the best open-source Postgresql projects in Haskell? This list will help you:

Project Stars
1 postgrest 21,837
2 ihp 4,197
3 beam 570
4 hasql 502
5 selda 476
6 squeal-postgresql 350
7 postgresql-simple 206
8 rel8 143
9 hasql-th 107
10 postgresql-typed 83
11 postgresql-orm 78
12 dbmigrations 74
13 shopping-cart-haskell 66
14 postgresql-transactional 59
15 ArkhamHorror 42
16 postgresql-simple-named 37
17 codd 36
18 postgresql-pure 35
19 fts 28
20 refurb 26
21 postgresql-libpq 19
22 postgresql-resilient 16
23 postgresql-simple-queue 16
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.