Module documentation for 0.1.0

This version can be pinned in stack with:[email protected]:30dcb7f4190d779bcc35e9bfa48bb3620b8c48fbfa8627ab8a9a4633409e3288,2417

Exact lookup

PartialHandler

If you have ever had to compose an exception handler for exceptions of multiple types,
you know how frustraiting it can get.
This library approaches this issue by providing a composable exception handler type,
which has a Monoid instance.

Composability means that you can define custom partial handlers and
reuse them by composing other handlers from them.

Here is an example of a composable partial handler,
which only defines what to do in case of a ThreadKilled exception
(the code uses the LambdaCase extension):

Putting all the syntactic trickery to make it shorter aside,
this handler is a monolith block of code.
Unlike with PartialHandler you can neither decompose it into simpler ones,
or compose it with other handlers to form a more complex one.