view tests/mr.ur @ 17:c3fe7f5e50b8

Check in aclocal.m4
author Adam Chlipala <adam@chlipala.net>
date Wed, 26 Oct 2011 09:11:22 -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>