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 Equal contract to the stdlib #1203

Merged
merged 3 commits into from
Mar 28, 2023
Merged

Add Equal contract to the stdlib #1203

merged 3 commits into from
Mar 28, 2023

Commits on Mar 27, 2023

  1. WIP

    yannham committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    4455a63 View commit details
    Browse the repository at this point in the history
  2. Add Equal contract

    Add an Equal contract to the stdlib, which checks that the value is
    equal to some constant. This contracts try to preserve laziness, in that
    checks are delayed for arrays and records in principle. Caution:
    currently, the lazy check isn't implemented for record, so this contract
    is actually just `fun c => from_predicate ((==) c)` when `c` is a
    record, temporarily.
    yannham committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    e53a422 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Apply suggestions from code review

    Fix typos in the code documentation
    
    Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io>
    yannham and vkleen committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    4e7f11b View commit details
    Browse the repository at this point in the history