view tests/mr.ur @ 7:05a28a77f6fe

'show' instance for 'document'
author Adam Chlipala <adam@chlipala.net>
date Thu, 10 Mar 2011 18:36:50 -0500
parents ea0ca570c121
children a4e5d053daed
line wrap: on
line source
fun main () =
    Feed.app (Feed.children
                  (Feed.tagA "item" {1 = "rdf:about"})
                  (Feed.tagC "title", Feed.tagC "content:encoded"))
             (fn (item, props) =>
                 debug ("URL: " ^ item.1);
                 debug ("Title: " ^ props.1);
                 debug ("Content: " ^ props.2))
             "http://feeds.feedburner.com/marginalrevolution/hCQh";
    return <xml>
      See stdout.
    </xml>