bugsnag-haskell: Bugsnag error reporter for Haskell

[ deprecated, library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated in favor of bugsnag, bugsnag-wai, bugsnag-yesod
Versions [RSS] 0.0.1.1, 0.0.1.2, 0.0.1.3, 0.0.2.0, 0.0.2.1, 0.0.2.2, 0.0.3.0, 0.0.3.1, 0.0.4.0, 0.0.4.1, 0.0.4.2, 0.0.4.3, 0.0.4.4
Change log CHANGELOG.md
Dependencies aeson (>=1.3.0.0), base (>=4.11.0 && <5), bugsnag-haskell, bytestring (>=0.10.12.0), case-insensitive (>=1.2.1.0), containers (>=0.6.2.1), Glob (>=0.9.0), http-client (>=0.6.4.1), http-client-tls (>=0.3.5.3), http-conduit (>=2.3.8), http-types (>=0.12.3), iproute (>=1.7.11), network (>=3.1.1.1), parsec (>=3.1.14.0), template-haskell (>=2.16.0.0), text (>=1.2.4.1), th-lift-instances (>=0.1.18), time (>=1.9.3), ua-parser (>=0.7.6.0), unliftio (>=0.2.18), wai (>=3.2.3), warp (>=3.3.16), yesod-core (>=1.6.20.1) [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 NixOS:0.0.4.4
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example-yesod, example-warp, example-simple, example-cli
Downloads 5096 total (21 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-0.0.4.4

[back to package description]

Bugsnag error reporter for Haskell

CI Stackage nightly

Catch and report exceptions in your Haskell code.

Configuration

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:

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.


CHANGELOG | LICENSE