Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
BugsnagCode [(Natural, Text)] |
Instances
Show BugsnagCode Source # | |
Defined in Network.Bugsnag.StackFrame showsPrec :: Int -> BugsnagCode -> ShowS # show :: BugsnagCode -> String # showList :: [BugsnagCode] -> ShowS # | |
ToJSON BugsnagCode Source # | |
Defined in Network.Bugsnag.StackFrame toJSON :: BugsnagCode -> Value # toEncoding :: BugsnagCode -> Encoding # toJSONList :: [BugsnagCode] -> Value # toEncodingList :: [BugsnagCode] -> Encoding # |
attachBugsnagCode :: CodeIndex -> BugsnagStackFrame -> BugsnagStackFrame Source #
Attempt to attach a
to a BugsnagCode
BugsnagStackFrame
Looks up the content in the Index by File/LineNumber and, if found, sets it on the record.
data BugsnagStackFrame Source #
BugsnagStackFrame | |
|
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: