Skip to content
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

Better error messages. #3

Closed
ix opened this issue May 1, 2019 · 2 comments
Closed

Better error messages. #3

ix opened this issue May 1, 2019 · 2 comments
Assignees
Labels
roadmap New feature or request

Comments

@ix
Copy link
Owner

ix commented May 1, 2019

At present, error messages only provide the cause of the error, as opposed to where it occurred.

@ix ix self-assigned this May 1, 2019
@ix ix added the roadmap New feature or request label May 1, 2019
@ix
Copy link
Owner Author

ix commented May 6, 2019

Apparently using assertions gets you line and file reporting for free.

@ix
Copy link
Owner Author

ix commented May 27, 2019

I checked out solutions using Debug.Trace and GHC.Stack and it seems like everything requires compiling with profiling enabled.

{-# LANGUAGE CPP #-} provides __LINE__ however this isn't adequate as it reports the function definition. Closing this for now as I don't think using Template Haskell for this purpose is appropriate and know of no other ways.

@ix ix closed this as completed May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant