bugsnag-haskell: Bugsnag error reporter for Haskell

[ deprecated, library, mit, web ] [ Propose Tags ]
Deprecated in favor of bugsnag, bugsnag-wai, bugsnag-yesod
Versions [RSS],,,,,,,,,,,,
Change log CHANGELOG.md
Dependencies aeson (>=, base (>=4.11.0 && <5), bugsnag-haskell, bytestring (>=, case-insensitive (>=, containers (>=, Glob (>=0.9.0), http-client (>=, http-client-tls (>=, http-conduit (>=2.3.8), http-types (>=0.12.3), iproute (>=1.7.11), network (>=, parsec (>=, template-haskell (>=, text (>=, th-lift-instances (>=0.1.18), time (>=1.9.3), ua-parser (>=, unliftio (>=0.2.18), wai (>=3.2.3), warp (>=3.3.16), yesod-core (>= [details]
License MIT
Author Patrick Brisbin
Maintainer pbrisbin@gmail.com
Category Web
Home page https://github.com/pbrisbin/bugsnag-haskell#readme
Uploaded by PatrickBrisbin at 2022-02-24T13:52:02Z
Distributions LTSHaskell:, NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example-yesod, example-warp, example-simple, example-cli
Downloads 4974 total (29 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-02-24 [all 1 reports]

Readme for bugsnag-haskell-

[back to package description]

Bugsnag error reporter for Haskell

CI Stackage nightly

Catch and report exceptions in your Haskell code.


settings <- newBugsnagSettings "BUGSNAG_API_KEY"

See Network.Bugsnag.Settings.

Reporting an Error

notifyBugsnag settings $ toException
    $ bugsnagException "Error" "message"
        [ $(currentStackFrame) "myFunction"

See Network.Bugsnag.Notify.

Throwing & Catching

Throw a BugsnagException yourself:

    $ bugsnagException "Error" "message" [$(currentStackFrame) "myFunction"]

Catch any exceptions, notify, and re-throw it:

myFunction `catch` \ex -> do
    notifyBugsnag settings ex
    throw ex


Examples can be built locally with:

stack build --flag bugsnag-haskell:examples