Mercurial > urweb
comparison demo/more/decision.urs @ 1032:5d9f47124c4c
Saving paper decisions
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 07 Nov 2009 11:06:38 -0500 |
parents | 5dccff15fa62 |
children |
comparison
equal
deleted
inserted
replaced
1031:5dccff15fa62 | 1032:5d9f47124c4c |
---|---|
4 con paperOther :: {Type} | 4 con paperOther :: {Type} |
5 constraint [Id, Decision] ~ paperOther | 5 constraint [Id, Decision] ~ paperOther |
6 include Conference.INPUT | 6 include Conference.INPUT |
7 where con paper = [Decision = option bool] ++ paperOther | 7 where con paper = [Decision = option bool] ++ paperOther |
8 | 8 |
9 val status : ctx ::: {Unit} -> [[Body] ~ ctx] => $paperOther -> xml ([Body] ++ ctx) [] [] | 9 val status : ctx ::: {Unit} -> [[Body] ~ ctx] => $([Id = paperId] ++ paperOther) |
10 -> transaction (xml ([Body] ++ ctx) [] []) | |
10 end) : Conference.OUTPUT where con paper = [Decision = option bool] ++ M.paperOther | 11 end) : Conference.OUTPUT where con paper = [Decision = option bool] ++ M.paperOther |
11 where con userId = M.userId | 12 where con userId = M.userId |
12 where con paperId = M.paperId | 13 where con paperId = M.paperId |
13 where con yourPaperTables = [] | 14 where con yourPaperTables = [] |