comparison src/ur/feed.urs @ 1:8de269c09617

Outputting a summary of Marginal Revolution RSS feed
author Adam Chlipala <adam@chlipala.net>
date Tue, 11 Jan 2011 13:17:44 -0500
parents ad85b8813e8a
children ea0ca570c121
comparison
equal deleted inserted replaced
0:ad85b8813e8a 1:8de269c09617
1 val fetch : string -> transaction string 1 con pattern :: Type -> Type -> Type
2
3 con tagInternal :: {Unit} -> Type
4
5 val tag : attrs ::: {Unit} -> folder attrs -> string -> $(mapU string attrs)
6 -> pattern (tagInternal attrs) {Attrs : $(mapU string attrs), Cdata : option string}
7
8 con childrenInternal :: Type -> {Type} -> Type
9
10 val children : parentI ::: Type -> parent ::: Type -> children ::: {(Type * Type)}
11 -> pattern parentI parent -> $(map (fn (i, d) => pattern i d) children) -> folder children
12 -> pattern (childrenInternal parentI (map fst children)) (parent * $(map snd children))
13
14 val app : internal ::: Type -> data ::: Type -> pattern internal data -> (data -> transaction {}) -> string -> transaction {}