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

Add HasCallStack constraints to all functions #1

Merged
merged 1 commit into from May 14, 2018

Conversation

cocreature
Copy link
Contributor

Given that this package is exclusively aimed at debugging, getting a callstack on failures is quite helpful in my experience. One thing to consider is backwards compatibility. In this PR I’ve just bumped the lower bound on base to 4.9 which supports the API that is being used here and still covers the 3 release support window that a lot of the Haskell ecosystem sticks to. If you prefer to keep backwards compatibility, we could use a combination of the call-stack package and our own CPP (for prettyCallStack) but for a package aimed exclusively at debugging, I’m not sure that’s worth the effort.

@andrewthad
Copy link
Collaborator

Thanks. This is an excellent addition. I don't care about backwards-compatibility for this, so bumping the minimum bound for base is fine.

@andrewthad andrewthad merged commit afd713a into haskell-primitive:master May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants