pbrisbin / bugsnag-haskell

Bugsnag error reporter for Haskell
10 stars 7 forks source link

Extensible bugsnagExceptionFromSomeException #23

Closed pbrisbin closed 6 years ago

pbrisbin commented 6 years ago

The current function only handles exceptions known to Control.Exception, there should be an easy way to support site-specific exceptions. This may require exposing our Caster stuffs.

pbrisbin commented 6 years ago

I think I'm going to slim down the library, and really only expose notifyBugsnag(With), and have it take SomeException. In addition to obviating this issue, this would mean:

I was writing up the main module docs for Network.Bugsnag with this approach in mind and the story reads a lot nicer, which I think is a good sign.