-
Notifications
You must be signed in to change notification settings - Fork 7
StackFrame Code Support #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why would this be terrible? |
I have no idea, just seems a little unusual, doesn't it? Feels like something that'll have security or performance problems. |
I could envision security problems if both of the following are true:
Aside from that, I can't say. In any case, this experimental project may be useful, I'm not sure: https://hackage.haskell.org/package/error-context |
I'm now thinking this isn't too terrible an idea. It'll be fun to build, an isolated thing within the library, and 100% opt-in anyway. 👍 |
Merged. Will be in v0.0.2.0. |
Uh oh!
There was an error while loading. Please reload this page.
Here's a probably-terrible idea...We could supply a TH function that reads your project directory into an index at compile time, which you then set on settings:
We could then have a function like
BugsnagStackFrame -> BugsnagCodeIndex -> Maybe BugsnagCode
which grabs the 6 lines of source by line number, which we'd then attach to the stack frame.The text was updated successfully, but these errors were encountered: