summaryrefslogtreecommitdiff
path: root/demo/more/grid.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-10-20 10:29:17 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-10-20 10:29:17 -0400
commitb3cfaa74a148d81d3c4a5dcc40b5ae3532b371ea (patch)
tree735539d263808b9d6d33d87eef8e4ea98f3b0e39 /demo/more/grid.ur
parentaece9fdadf1bdfbf069cc5ac5ab397eef1e3f2ad (diff)
Adapted existing demos to tuple pattern-matching
Diffstat (limited to 'demo/more/grid.ur')
-rw-r--r--demo/more/grid.ur8
1 files changed, 4 insertions, 4 deletions
diff --git a/demo/more/grid.ur b/demo/more/grid.ur
index f2b9681c..170c6f2c 100644
--- a/demo/more/grid.ur
+++ b/demo/more/grid.ur
@@ -9,10 +9,10 @@ con colMeta' = fn (row :: Type) (input :: Type) (filter :: Type) =>
DisplayFilter : filter -> xbody,
Filter : filter -> row -> signal bool,
Sort : option (row -> row -> bool)}
-
-con colMeta = fn (row :: Type) (global_input_filter :: (Type * Type * Type)) =>
- {Initialize : transaction global_input_filter.1,
- Handlers : global_input_filter.1 -> colMeta' row global_input_filter.2 global_input_filter.3}
+
+con colMeta = fn (row :: Type) (global :: Type, input :: Type, filter :: Type) =>
+ {Initialize : transaction global,
+ Handlers : global -> colMeta' row input filter}
con aggregateMeta = fn (row :: Type) (acc :: Type) =>
{Initial : acc,