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

Demote compare #1267

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Demote compare #1267

wants to merge 5 commits into from

Commits on Aug 20, 2021

  1. Implement compareEq, compareLt and compareLeq primitives.

    These allow users to test equalites between type variables and
    branch on the results.  This could nearly be accomplished by
    instead demoting the value of the numeric expressions to integers
    and comparing them as integers.  However, this required `fin`
    constraints on the expressions, which is sometimes undesirable.
    
    We also implement the `coerceSize` operation discussed in
    issue #704.  We may decide to make this a primitive at a
    later time.
    robdockins committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    12d1bd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59cc67d View commit details
    Browse the repository at this point in the history
  3. Update test suite output

    robdockins committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    7dcb2c6 View commit details
    Browse the repository at this point in the history
  4. Update book examples

    robdockins committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    716c338 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cfaafdc View commit details
    Browse the repository at this point in the history