The explicit-exception package

[Tags: bsd3, library]

Synchronous and Asynchronous exceptions which are explicit in the type signature. The first ones are very similar to Either and Control.Monad.Error.ErrorT. The second ones are used for System.IO.readFile and System.IO.hGetContents. This package is a proposal for improved exception handling in Haskell. It strictly separates between handling of exceptional situations (file not found, invalid user input, see http://www.haskell.org/haskellwiki/Exception) and (programming) errors (division by zero, index out of range, see http://www.haskell.org/haskellwiki/Error). Handling of the first one is called "exception handling", whereas handling of errors is better known as "debugging".

For applications see the packages midi, spreadsheet, http-monad.

Although I'm not happy with the identifier style of the Monad Transformer Library (partially intended for unqualified use) I have tried to adopt it for this library, in order to let Haskell programmers get accustomed easily to it.

To do: Because many people requested it, we will provide a bracket function that frees a resource both when an exception and an error occurs, that is, it combines exception handling and debugging. However note that freeing resources in case of an error is dangerous and may cause further damage.


Properties

Versions0.0.1, 0.0.2, 0.1, 0.1.0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.7.1, 0.1.7.2, 0.1.7.3
Dependenciesapplicative (==1.0.*), base (==1.*), transformers (==0.2.*) or
base (==1.*), special-functors (==1.0.*), transformers (==0.2.*) or
base (>=2 && <5), transformers (==0.2.*)
LicenseBSD3
AuthorHenning Thielemann <haskell@henning-thielemann.de>
MaintainerHenning Thielemann <haskell@henning-thielemann.de>
StabilityExperimental
CategoryControl
Home pagehttp://www.haskell.org/haskellwiki/Exception
Source repositoryhead: darcs get http://code.haskell.org/explicit-exception/
this: darcs get http://code.haskell.org/explicit-exception/ --tag 0.1.6
Executablesee-writer, ee-unzip, ee-test, ee-tar
Upload dateSat Apr 30 16:18:32 UTC 2011
Uploaded byHenningThielemann
DistributionsDebian:0.1.7.3, NixOS:0.1.7.3
Downloads1769 total (212 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
buildtestsBuild test suiteDisabled
splitbaseChoose the smaller, split-up base package from version 2 on.Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees