| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Bugsnag.StackFrame
Synopsis
- newtype BugsnagCode = BugsnagCode [(Natural, Text)]
- attachBugsnagCode :: CodeIndex -> BugsnagStackFrame -> BugsnagStackFrame
- data BugsnagStackFrame = BugsnagStackFrame {}
- bugsnagStackFrame :: FilePath -> Natural -> Text -> BugsnagStackFrame
- currentStackFrame :: Q Exp
Documentation
newtype BugsnagCode Source #
Lines of code surrounding the error
Pairs of (line-number, line-of-code), up to 3 on either side.
Constructors
| BugsnagCode [(Natural, Text)] |
Instances
| Show BugsnagCode Source # | |
Defined in Network.Bugsnag.StackFrame Methods showsPrec :: Int -> BugsnagCode -> ShowS # show :: BugsnagCode -> String # showList :: [BugsnagCode] -> ShowS # | |
| ToJSON BugsnagCode Source # | |
Defined in Network.Bugsnag.StackFrame Methods toJSON :: BugsnagCode -> Value # toEncoding :: BugsnagCode -> Encoding # toJSONList :: [BugsnagCode] -> Value # toEncodingList :: [BugsnagCode] -> Encoding # | |
attachBugsnagCode :: CodeIndex -> BugsnagStackFrame -> BugsnagStackFrame Source #
Attempt to attach a to a BugsnagCodeBugsnagStackFrame
Looks up the content in the Index by File/LineNumber and, if found, sets it on the record.
data BugsnagStackFrame Source #
Constructors
| BugsnagStackFrame | |
Fields
| |
Instances
bugsnagStackFrame :: FilePath -> Natural -> Text -> BugsnagStackFrame Source #
currentStackFrame :: Q Exp Source #
Construct a from the point of this spliceBugsnagStackFrame
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")