view tests/mr.ur @ 18:4bb4db8f9cdc

Upgrade ltmain.sh
author Adam Chlipala <adam@chlipala.net>
date Wed, 26 Oct 2011 09:12:37 -0400
parents 0140b1662994
children
line wrap: on
line source
fun main () =
    doc <- Feed.fetch "http://feeds.feedburner.com/marginalrevolution/feed";

    Feed.app (Feed.children
                  (Feed.tagA "item" ())
                  (Feed.tagC "link", Feed.tagC "title", Feed.tagC "content:encoded"))
             (fn ((), (link, title, content)) =>
                 error <xml/>;
                 debug ("URL: " ^ link);
                 debug ("Title: " ^ title);
                 debug ("Content: " ^ content))
             doc;
    return <xml>
      See stdout.
    </xml>