talira

exceptions

Extensible optionally-pure exceptions for Haskell

open sourceBSD-3-Clausefree

exceptions is a Haskell library of extensible, optionally pure exceptions that work with the monad transformer library (mtl). It is maintained by Edward Kmett and free under the BSD 3-Clause licence.

Problems it solves

  • throw and catch exceptions inside a monad transformer stack in Haskell
  • write Haskell code that can fail with an exception without being tied to IO
  • handle errors in Haskell code that runs in a custom monad stack

Features

  • extensible exceptions in any monad, not just IO
  • optionally pure exceptions
  • compatible with mtl monad transformers

Alternatives

The same job

These do what exceptions does.

  1. mtl The Monad Transformer Library
  2. transformers Concrete functor and monad transformers for Haskell

Compare exceptions with the top 3