Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Handles computations that can exit early and log warnings
Haskell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/Control
.gitignore
Dangerous.cabal
LICENSE
README.md
Setup.hs

README.md

A haskell module for error handling.

Exposes the "Dangerous" Monad (and accompanying DangerousT transformer), which encapsulates computations that can exit early and produce warnings.

The Dangerous monad does not preform any IO, so you can handle the errors and warnings at any point in your code.

The module does, however, offer an 'execute' function which encapsulates the "normal" use case of writing warnings to stderr and then exiting if necessary.

Dangerous monads of computation type a result in (Either Exit a, [Warning]) where Exit can denote either computation ending early (Stop) or computation failing (Exit with an error code, Failure without).

Something went wrong with that request. Please try again.