safe-exceptions VS postgresql-simple

Compare safe-exceptions vs postgresql-simple and see what are their differences.

safe-exceptions

Safe, consistent, and easy exception handling (by fpco)

postgresql-simple

Mid-level client library for accessing PostgreSQL from Haskell (by lpsmith)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
safe-exceptions postgresql-simple
2 1
126 212
0.0% -
1.2 0.0
about 1 month ago 8 months ago
Haskell Haskell
MIT 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.

safe-exceptions

Posts with mentions or reviews of safe-exceptions. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-21.
  • Async Control Flow
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    In safe-exception and uniftio it was decided to rethrow the original exception exactly because they decided to use uninterruptibleMask, see here for details.
  • Why exactly I want Boring Haskell to happen
    6 projects | reddit.com/r/haskell | 9 Jan 2021
    unliftio (and safe-exceptions) contains a very controversial choice of of using uninterruptibleMask inside its bracket. The argument for it seem to come from this issue and comes from the fact that one of the most popular resource finalizers hClose is interruptible. This is a simplification. It is interruptible only if a file handle is used concurrently. Such usage of file handles is rather odd, and it suggest wrong architecture, for example leaking file handles using concurrency. When using file handles in synchronous setting, what withFile pattern encourages, hClose will not block and thus mask is enough.

postgresql-simple

Posts with mentions or reviews of postgresql-simple. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-21.
  • Async Control Flow
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    Hmm, you are right, the bracket I pointed to is unrelated. I guess the fix is in catchAny, which doesn't catch ThreadKilled. So not it's not rolling the transaction back in case of asynchronous exceptions. My point is that it probably should not rollback even on synchronous exception. BTW the issue is well know, see for example here

What are some alternatives?

When comparing safe-exceptions and postgresql-simple you can also consider the following projects:

haskey-btree - B+-tree implementation in Haskell

gremlin-haskell -  Haskell graph database client for TinkerPop3 Gremlin Server

postgresql-schema - PostgreSQL Schema is a database migration tool.

mbtiles - Haskell MBTiles Library

HDBC - Haskell Database Connectivity

hocilib - A lightweight Haskell binding to the OCILIB C API

HongoDB - A Simple Key Value Store

yxdb-utils - Utilities for parsing Alteryx Database format

postgresql-transactional - Transactional monadic actions on top of PostgreSQL.

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

mywatch

postgresql-syntax - PostgreSQL SQL syntax utilities