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.
Most optionally typed languages support union types. Mavis should support them too.
The obvious syntax for unions should work fine:
We luck out because the
;operator has lower priority than,does. This gives us a handy xfy list as the first argument:It should be easy enough to combine that into a single
freeze/2call. Be careful not to introduce extra nondeterminism when checking the types.