Popularity
6.6
Growing
Activity
6.4
-
10
4
7

Monthly Downloads: 33
Programming language: Haskell
License: MIT License
Tags: Web    
Latest version: v0.0.4.1

bugsnag-haskell alternatives and similar packages

Based on the "Web" category.
Alternatively, view bugsnag-haskell alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of bugsnag-haskell or a related project?

Add another 'Web' Package

README

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

  • [Simple](./examples/simple/Main.hs)
  • [Command-Line](./examples/cli/Main.hs)
  • [WAI/Warp](./examples/warp/Main.hs)
  • [Yesod](./examples/yesod/Main.hs)

Examples can be built locally with:

stack build --flag bugsnag-haskell:examples

Contributing

See [CONTRIBUTING](./CONTRIBUTING.md).


[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)


*Note that all licence references and agreements mentioned in the bugsnag-haskell README section above are relevant to that project's source code only.