Mercurial > urweb
annotate demo/more/dnat.urs @ 1272:56bd4a4f6e66
Some serious bug-fix work to get HTML example to compile; this includes fixing a bug with 'val' patterns in Unnest and the need for more local reduction in Especialize
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 03 Jun 2010 13:04:37 -0400 |
parents | e47303e5d73d |
children |
rev | line source |
---|---|
adamc@1015 | 1 type t |
adamc@1015 | 2 |
adamc@1015 | 3 val zero : transaction t |
adamc@1015 | 4 val inc : t -> transaction unit |
adamc@1015 | 5 val dec : t -> transaction unit |
adamc@1015 | 6 |
adamc@1015 | 7 val render : ctx ::: {Unit} -> inp ::: {Type} -> [[Body] ~ ctx] => |
adamc@1015 | 8 xml ([Body] ++ ctx) inp [] -> t -> xml ([Body] ++ ctx) inp [] |