diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

Datatype that has parameter but doesn't use it #66

Closed davidweichiang closed 2 years ago

davidweichiang commented 2 years ago

This program doesn't compile

data foo a = Bar | Baz;
data nat = Zero | Succ nat;
define f = \x: foo nat . (x, x);
f Bar

because foo nat is not positive (robust). Should it be?