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

Make use of GHC call-stack simulation for the bounds-checked partial functions #184

Closed

Commits on Sep 26, 2017

  1. Enable GHC call-stack simulation in "safe" partial functions.

    `(!)` etc. are of course only safer than their `unsafe` pendants in the sense that
    errors are raised as proper exceptions, but when used in sizable applications
    that by itself does not make the errors easy to find.
    
    GHC-8 has added support for simulated call stack which can actually give some
    information on the use site of such errors. In this commit, I added the
    necessary constraint to the partial functions which perform bounds checks.
    leftaroundabout committed Sep 26, 2017
    Configuration menu
    Copy the full SHA
    e04ac4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    732bb34 View commit details
    Browse the repository at this point in the history