summaryrefslogtreecommitdiff
path: root/src/reduce.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-28 10:35:25 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-28 10:35:25 -0400
commit6a6c98d74f0eb61b52e8adc5385698a224eeccc1 (patch)
treebc9e633b76c75ea47d6cfdb826c549ed7cd4c66a /src/reduce.sml
parent3cb644caeed50e5c82778b5ed7c165950655109a (diff)
Demo compiles with pattern-matching-fu
Diffstat (limited to 'src/reduce.sml')
-rw-r--r--src/reduce.sml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reduce.sml b/src/reduce.sml
index 9460d3fe..a6c0b38a 100644
--- a/src/reduce.sml
+++ b/src/reduce.sml
@@ -390,6 +390,9 @@ fun kindConAndExp (namedC, namedE) =
| _ => default ()
end
+ | ECase (_, [((PRecord [], _), e)], _) => exp env e
+ | ECase (_, [((PWild, _), e)], _) => exp env e
+
| ECase (e, pes, {disc, result}) =>
let
fun patBinds (p, _) =