Closed colin-mcd closed 1 year ago
Datatypes with zero constructors are only kinda working right now. So long as optimizations are on, it turns case x of for an x with no constructors into sample fail, but if you turn optimizations off then the FGG rules are messed up.
case x of
x
sample fail
I think it would be perfectly fine to just not allow zero-constructor datatypes.
Oh, I guess defunctionalization internally can create a zero-constructor datatype (if there are no folds).
Datatypes with zero constructors are only kinda working right now. So long as optimizations are on, it turns
case x of
for anx
with no constructors intosample fail
, but if you turn optimizations off then the FGG rules are messed up.