bugsnag-haskell-0.0.1.3: Bugsnag error reporter for Haskell

Safe HaskellNone
LanguageHaskell2010

Network.Bugsnag.StackFrame

Synopsis

Documentation

newtype BugsnagCode Source #

Lines of code surrounding the error

Pairs of (line-number, line-of-code), up to 3 on either side. There's no real way to support this in Haskell, so we always send Nothing.

Constructors

BugsnagCode [(Natural, Text)] 

data BugsnagStackFrame Source #

Instances
Show BugsnagStackFrame Source # 
Instance details

Defined in Network.Bugsnag.StackFrame

Generic BugsnagStackFrame Source # 
Instance details

Defined in Network.Bugsnag.StackFrame

Associated Types

type Rep BugsnagStackFrame :: * -> * #

ToJSON BugsnagStackFrame Source # 
Instance details

Defined in Network.Bugsnag.StackFrame

type Rep BugsnagStackFrame Source # 
Instance details

Defined in Network.Bugsnag.StackFrame

currentStackFrame :: Q Exp Source #

Construct a BugsnagStackFrame from the point of this splice

Unfortunately there's no way to know the function, so that must be given:

>>> :set -XOverloadedStrings -XTemplateHaskell
>>> :m +Control.Arrow
>>> (bsfFile &&& bsfMethod) $ $(currentStackFrame) "myFunc"
("<interactive>","myFunc")