bugsnag-haskell: Bugsnag error reporter for Haskell

[ deprecated, library, mit, web ] [ Propose Tags ]
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, case-insensitive, containers, Glob (>=0.9.0), http-client, http-client-tls, http-conduit, http-types, iproute, network, parsec, template-haskell, text, th-lift-instances, time, ua-parser, unliftio, wai, warp, 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 2020-12-08T18:21:31Z
Distributions LTSHaskell:0.0.4.4, NixOS:0.0.4.4
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example-yesod, example-warp, example-simple, example-cli
Downloads 4868 total (35 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-12-08 [all 1 reports]

Readme for bugsnag-haskell-0.0.4.1

[back to package description]

Bugsnag error reporter for Haskell

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