Description
Bugsnag error reporter for Haskell.
Description
Please see README.md
README.md
Bugsnag error reporter for Haskell
Catch and report exceptions in your Haskell code.
Configuration
settings <- newBugsnagSettings "BUGSNAG_API_KEY"
Reporting an Error
notifyBugsnag settings $ toException
$ bugsnagException "Error" "message"
[ $(currentStackFrame) "myFunction"
]
Throwing & Catching
Throw a BugsnagException
yourself:
throw
$ bugsnagException "Error" "message" [$(currentStackFrame) "myFunction"]
Catch any exceptions, notify, and re-throw it:
myFunction `catch` \ex -> do
notifyBugsnag settings ex
throw ex
Examples
Examples can be built locally with:
stack build --flag bugsnag-haskell:examples
Contributing
See CONTRIBUTING.