squeal-postgresql VS opaleye

Compare squeal-postgresql vs opaleye and see what are their differences.


Squeal, a deep embedding of SQL in Haskell (by morphismtech)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
squeal-postgresql opaleye
3 7
330 575
0.0% -
6.9 9.0
2 months ago about 1 month ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of squeal-postgresql. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning squeal-postgresql yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of opaleye. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-21.
  • What are things that the Haskell scene lacks the most?
    4 projects | reddit.com/r/haskell | 21 Apr 2022
  • Out of memory when building product-profunctors
    2 projects | reddit.com/r/haskell | 13 Mar 2022
    Nice! Well done. If you have any more questions about product-profunctors or Opaleye then please let me know. It's best to ask by [opening an issue](https://github.com/tomjaguarpaw/haskell-opaleye/issues/new).
  • Against SQL
    8 projects | news.ycombinator.com | 10 Jul 2021
    The only way out that I can see is to design embedded domain specific languages (EDSLs) that inherit the expressiveness, composability and type safety from the host language. That's what Opaleye and Rel8 (Postgres EDSLs for Haskell do. Haskell is particularly good for this. The query language can be just a monad and therefore users can carry all of their knowledge of monadic programming to writing database queries.

    This approach doesn't resolve all of the author's complaints but it does solve many.

    Disclaimer: I'm the author of Opaleye. Rel8 is built on Opaleye. Other relational query EDSLs are available.

    [1] https://github.com/tomjaguarpaw/haskell-opaleye/

What are some alternatives?

When comparing squeal-postgresql and opaleye you can also consider the following projects:

esqueleto - Bare bones, type-safe EDSL for SQL queries on persistent backends.

HDBC - Haskell Database Connectivity

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

database-migrate - database-migrate haskell library to assist with migration for *-simple sql backends.


persistent-mysql-haskell - Persistence interface for Haskell allowing multiple storage methods.

beam - A type-safe, non-TH Haskell SQL library and ORM

sqlite-simple - Mid-level bindings for sqlite

acid-state - Add ACID guarantees to any serializable Haskell data structure

HongoDB - A Simple Key Value Store

rel8 - Hey! Hey! Can u rel8?

hasql - The fastest PostgreSQL libpq-based driver for Haskell