Mercurial > urweb
view demo/more/dnat.urs @ 1288:fc7ecf8883b1
Some post-type-checking support for polymorphic variants
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 21 Aug 2010 10:58:13 -0400 |
parents | e47303e5d73d |
children |
line wrap: on
line source
type t val zero : transaction t val inc : t -> transaction unit val dec : t -> transaction unit val render : ctx ::: {Unit} -> inp ::: {Type} -> [[Body] ~ ctx] => xml ([Body] ++ ctx) inp [] -> t -> xml ([Body] ++ ctx) inp []