Exception handling for
Warp not handles exceptions well. It just log them to
console. This package - an attempt to solve the problem.
The only drawback stems from the basic advantages of Haskell - laziness.
All errors within
ResponseBuilder will not be caught. Thus, the
following code will not work:
... return $ responseLBS undefined ...
To ensure catch all errors, you need to consume all data before feeding the builder.
Handler wrapper. For polymorphic exceptions.
Helper for make
protect [mkHandler myHandler] $ ...