From 73b3f4158297d0161e1d18c24ff9a4604f07c32c Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 10 Jan 2010 13:44:22 -0500 Subject: Reduce concatenations of the empty record; unpoly non-recursive functions --- src/reduce.sml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/reduce.sml') diff --git a/src/reduce.sml b/src/reduce.sml index 95b26da8..cc8ba0fd 100644 --- a/src/reduce.sml +++ b/src/reduce.sml @@ -291,6 +291,8 @@ fun kindConAndExp (namedC, namedE) = case (#1 c1, #1 c2) of (CRecord (k, xcs1), CRecord (_, xcs2)) => (CRecord (kind env k, xcs1 @ xcs2), loc) + | (CRecord (_, []), _) => c2 + | (_, CRecord (_, [])) => c1 | _ => (CConcat (c1, c2), loc) end | CMap (dom, ran) => (CMap (kind env dom, kind env ran), loc) -- cgit v1.2.3