Merge branch 'monomorphizer-data' into pattern-matching-with-typechecking

This commit is contained in:
Rakarake 2023-03-31 18:59:05 +02:00
commit b8f717f39f
5 changed files with 359 additions and 45 deletions

View file

@ -0,0 +1,13 @@
data Either(a b) where {
Left: a -> Either (a b)
Right: b -> Either (a b)
};
unwrapLeft x = case x of {
Left y => y;
};
wow = Left 5;
main = unwrapLeft wow;