diff options
author | 2009-05-28 10:35:25 -0400 | |
---|---|---|
committer | 2009-05-28 10:35:25 -0400 | |
commit | f4799004f028094c775c824409bac4e3590b2421 (patch) | |
tree | bc9e633b76c75ea47d6cfdb826c549ed7cd4c66a /src/urweb.grm | |
parent | 072ba13540fd884e01c8d2aab31853594825e000 (diff) |
Demo compiles with pattern-matching-fu
Diffstat (limited to 'src/urweb.grm')
-rw-r--r-- | src/urweb.grm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/urweb.grm b/src/urweb.grm index 638ede12..0d2c1d47 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -985,6 +985,7 @@ earg : patS (fn (e, t) => val e' = case #1 patS of PVar x => (EAbs (x, NONE, e), loc) + | PAnnot ((PVar x, _), t) => (EAbs (x, SOME t, e), loc) | _ => (EAbs ("$x", SOME pt, (ECase ((EVar ([], "$x", DontInfer), loc), @@ -1001,6 +1002,7 @@ eargp : pterm (fn (e, t) => val e' = case #1 pterm of PVar x => (EAbs (x, NONE, e), loc) + | PAnnot ((PVar x, _), t) => (EAbs (x, SOME t, e), loc) | _ => (EAbs ("$x", SOME pt, (ECase ((EVar ([], "$x", DontInfer), loc), |