Merge branch 'monomorphizer-data' into pattern-matching-with-typechecking
This commit is contained in:
commit
b8f717f39f
5 changed files with 359 additions and 45 deletions
13
sample-programs/mono-2.crf
Normal file
13
sample-programs/mono-2.crf
Normal 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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue