effect-monad VS safe-exceptions

Compare effect-monad vs safe-exceptions and see what are their differences.

effect-monad

Provides 'graded monads' and 'parameterised monads' to Haskell, enabling fine-grained reasoning about effects. (by dorchard)

safe-exceptions

Safe, consistent, and easy exception handling (by fpco)
Our great sponsors
  • talent.io - Download talent.io’s Tech Salary Report
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Truly a developer’s best friend
effect-monad safe-exceptions
0 2
85 129
- 0.0%
0.0 0.0
about 1 year ago 4 months ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License MIT 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.

effect-monad

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

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

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.

What are some alternatives?

When comparing effect-monad and safe-exceptions you can also consider the following projects:

extensible-effects - Extensible Effects: An Alternative to Monad Transformers

ReplicateEffects - Composable replication schemes of applicative functors in Haskell

retry - Retry combinators for monadic actions that may fail

lens-tutorial - The missing tutorial module for the lens library

fused-effects - A fast, flexible, fused effect system for Haskell

recursion-schemes - Generalized bananas, lenses and barbed wire

mtl - The Monad Transformer Library

either - the EitherT monad transformer

unexceptionalio - IO without any PseudoExceptions

rio-orphans - A standard library for Haskell

free - free monads

pipes - Compositional pipelines