view tests/mr.ur @ 19:287a0e02f1a6

Parallel builds
author Ron de Bruijn <rmbruijn@gmail.com>
date Sun, 17 Jun 2012 20:41:54 +0200
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>