You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2018. It is now read-only.
That's more verbose (and error prone) than I'd like. I'd prefer to write:
:- typeeven_integer--->0 is Xmod2.
:- typenorth_american_country--->usa; canada; mexico.
The basic notation is similar to Mercury while allowing arbitrary type checks (such as even_integer). This can be implemented with a relatively easy term_expansion/2 macro.
The text was updated successfully, but these errors were encountered:
This sugary syntax should automatically generate clauses for quickcheck:arbitrary/2, if possible. In most circumstances it will be trivial to do so. We certainly don't want to maintain those definitions by hand if we can avoid it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Imagine the following two type definitions in mavis:
That's more verbose (and error prone) than I'd like. I'd prefer to write:
The basic notation is similar to Mercury while allowing arbitrary type checks (such as
even_integer
). This can be implemented with a relatively easyterm_expansion/2
macro.The text was updated successfully, but these errors were encountered: