Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Handles computations that can exit early and log warnings
Latest commit d519e49 @Soares Added 'dangerously'
Failed to load latest commit information.
src/Control Added 'dangerously'
.gitignore extracted from bookbuilder
Dangerous.cabal Added 'dangerously'
LICENSE extracted from bookbuilder Added README
Setup.hs extracted from bookbuilder

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.