bugsnag-haskell-0.0.1.1: 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 # 
Generic BugsnagStackFrame Source # 
ToJSON BugsnagStackFrame Source # 
type Rep BugsnagStackFrame Source # 

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")