Mercurial > urweb
diff demo/view.ur @ 823:669ac5e9a69e
Demo compiles with pattern-matching-fu
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 28 May 2009 10:35:25 -0400 |
parents | 7b47fc964a0f |
children | c7b9a33c26c8 |
line wrap: on
line diff
--- a/demo/view.ur Thu May 28 10:16:50 2009 -0400 +++ b/demo/view.ur Thu May 28 10:35:25 2009 -0400 @@ -1,7 +1,7 @@ table t : { A : int } view v = SELECT t.A AS A FROM t WHERE t.A > 7 -fun list (u ::: Type) (_ : fieldsOf u [A = int]) (title : string) (x : u) = +fun list [u] (_ : fieldsOf u [A = int]) (title : string) (x : u) = xml <- queryX (SELECT * FROM x) (fn r : {X : {A : int}} => <xml><li>{[r.X.A]}</li></xml>); return <xml>