Haskell SQL

Open-source Haskell projects categorized as SQL

Top 8 Haskell SQL Projects

  1. postgrest

    REST API for any Postgres database

    Project mention: Supabase MCP leaks your entire SQL Database, a lethal trifecta attack | news.ycombinator.com | 2025-07-08

    I think I know what you're talking about because I ran into this too. In defense of Supabase, you can still use transactions in other ways. Transactions through the client are messy and not easily supported by PostgREST.

    The GitHub issue here sums up the conversation about this:

    https://github.com/PostgREST/postgrest/issues/286

    So... your comment is a bit disingenuous. Regardless of Hacker News's thoughts on MCP servers, there is a cohort of users that are finding them to be immensely useful. Myself included.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. hstream

    HStreamDB is an open-source, cloud-native streaming database for IoT and beyond. Modernize your data stack for real-time applications. (by hstreamdb)

  4. beam

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

    Project mention: Optimizing a Rust GPU matmul kernel | news.ycombinator.com | 2024-12-06

    I'm not familiar with GPUs specifically, but I have seen this for ORMs that support multiple SQL dialects (e.g. [0]).

    A great technique is called 'tagless final encoding' [1]. Using this technique, you can specify capabilities of an embedded domain-specific language (eDSL) such that you can have a shared (but narrow) common set of features, while allowing specializations of this eDSL to support extra features.

    [0]: https://github.com/haskell-beam/beam

    [1]: https://nrinaudo.github.io/articles/tagless_final.html

  5. selda

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

  6. squeal-postgresql

    Squeal, a deep embedding of SQL in Haskell

  7. rel8

    Hey! Hey! Can u rel8?

  8. codd

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

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. sql-simple-mysql

    common middle-level sql client.

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).

Haskell SQL discussion

Log in or Post with

Haskell SQL related posts

  • Generate an OpenAPI From Your Database

    4 projects | dev.to | 27 Dec 2024
  • Optimizing a Rust GPU matmul kernel

    2 projects | news.ycombinator.com | 6 Dec 2024
  • How to use PostgreSQL with Haskell: beam

    2 projects | dev.to | 2 Oct 2023
  • How to use PostgreSQL with Haskell: selda

    1 project | dev.to | 2 Oct 2023
  • Choosing the right abstraction level for SQLite library.

    2 projects | /r/haskell | 17 Mar 2023
  • Announcing codd - a tool to apply postgres SQL migrations

    3 projects | /r/haskell | 3 Mar 2023
  • What's your favorite Database EDSL/library in Haskell?

    4 projects | /r/haskell | 28 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Sep 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 postgrest 25,654
2 hstream 723
3 beam 597
4 selda 479
5 squeal-postgresql 375
6 rel8 159
7 codd 41
8 sql-simple-mysql 1

Sponsored
Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com