<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Plenitude of Arboreal Beauty &#187; Haskell</title>
	<atom:link href="http://davidsiegel.org/tag/haskell/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidsiegel.org</link>
	<description>David Siegel</description>
	<lastBuildDate>Fri, 09 Jul 2010 10:09:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reintroducing the Jonometer</title>
		<link>http://davidsiegel.org/reintroducing-the-jonometer/</link>
		<comments>http://davidsiegel.org/reintroducing-the-jonometer/#comments</comments>
		<pubDate>Fri, 14 May 2010 15:51:48 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Haskell]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://davidsiegel.org/?p=739</guid>
		<description><![CDATA[I finally had some time to port Matt Zimmerman&#8217;s &#8220;Jonometer&#8221; to Haskell, and have finished version 1! The following bit of code compiles natively, is statically typed, and requires no type declarations due to Haskell&#8217;s amazing type inference.
You&#8217;ll need hs-twitter, and you can run this as a script like ./jonometer.hs

Now I need to bone up [...]]]></description>
			<content:encoded><![CDATA[<p>I finally had some time to port <a href="http://mdzlog.alcor.net/2010/03/19/introducing-the-jonometer/" onclick="pageTracker._trackPageview('/outgoing/mdzlog.alcor.net/2010/03/19/introducing-the-jonometer/?referer=');">Matt Zimmerman&#8217;s &#8220;Jonometer&#8221;</a> to Haskell, and have finished version 1! The following bit of code compiles natively, is statically typed, and requires no type declarations due to Haskell&#8217;s amazing type inference.</p>
<p>You&#8217;ll need <code>hs-twitter</code>, and you can run this as a script like <code>./jonometer.hs</code></p>
<p><script src="http://gist.github.com/401265.js?file=jonometer.hs"></script></p>
<p>Now I need to bone up on CouchDB and write version 2!</p>
]]></content:encoded>
			<wfw:commentRss>http://davidsiegel.org/reintroducing-the-jonometer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Haskell Gem: Unwrapping Indented Text</title>
		<link>http://davidsiegel.org/haskell-unwrap/</link>
		<comments>http://davidsiegel.org/haskell-unwrap/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 04:30:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://davidsiegel.org/?p=566</guid>
		<description><![CDATA[While processing some email, I needed a script to unwrap indented lines in email headers. I wrote a Haskell program that turned out to be a short and sweet demonstration of simple but interesting Haskell features (pattern matching, guards, type inference, function composition, and the humble cons) so I thought I&#8217;d share it.

If you&#8217;re new [...]]]></description>
			<content:encoded><![CDATA[<p>While processing some email, I needed a script to unwrap indented lines in email headers. I wrote a Haskell program that turned out to be a short and sweet demonstration of simple but interesting Haskell features (pattern matching, guards, type inference, function composition, and the humble cons) so I thought I&#8217;d share it.</p>
<p><script src="http://gist.github.com/226693.js"></script></p>
<p>If you&#8217;re new to Haskell,</p>
<ul>
<li><code>[]</code> is the empty list</li>
<li><code>[a]</code> is a list with a single element <code>a</code></li>
<li><code>x : y</code> creates a new list by placing element <code>x</code> at the front of list <code>y</code></li>
<li><code>++</code> is concatenate</li>
<li><code>interact</code> is a function taking a single argument, a function that takes a string and returns a string, and returns a bit of IO that runs the string transformation function on the contents of STDIN and prints the result</li>
<li><code>.</code> (period) is a binary operator that composes functions</li>
<li><code>foldr</code> is right-fold, and behaves like this: <code>foldr f d [a, b, c] == f a (f b (f c d))</code></li>
<li>Lines of the form <code>| a = b</code> are guards, which evaluate to <code>b</code> if <code>a</code> evaluates to <code>True</code></li>
</ul>
<p>Example usage:<br />
<code><br />
[/tmp]% cat > header<br />
This is a normal line.<br />
This is a slightly longer line that<br />
&nbsp;&nbsp;wraps with two spaces.<br />
A short line.<br />
Another example of a long line that<br />
&nbsp;&nbsp;&nbsp;&nbsp;wraps with tabs (not just once,<br />
&nbsp;&nbsp;&nbsp;&nbsp;but twice.<br />
Final line.<br />
[/tmp]% cat header | runhaskell Unwrap.hs<br />
This is a normal line.<br />
This is a slightly longer line that wraps with two spaces.<br />
A short line.<br />
Another example of a long line that wraps with tabs (not just once, but twice.<br />
Final line.<br />
</code></p>
<p>Care to share the same program implemented in your language of choice?</p>
]]></content:encoded>
			<wfw:commentRss>http://davidsiegel.org/haskell-unwrap/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Installing haskell-platform in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</title>
		<link>http://davidsiegel.org/haskell-platform-in-karmic-koala/</link>
		<comments>http://davidsiegel.org/haskell-platform-in-karmic-koala/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 18:00:10 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Haskell]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://davidsiegel.org/?p=514</guid>
		<description><![CDATA[
Now you can try the Karmic Wallpaper Contest script. Special thanks to Jesse Hallet.
]]></description>
			<content:encoded><![CDATA[<p><script src="http://gist.github.com/163462.js"></script></p>
<p>Now you can try the <a href="/karmic-desktop-contest-script">Karmic Wallpaper Contest script</a>. Special thanks to <a href="http://sitr.us/2009/07/02/how-to-install-haskell-platform-on-ubuntu-jaunty.html" onclick="pageTracker._trackPageview('/outgoing/sitr.us/2009/07/02/how-to-install-haskell-platform-on-ubuntu-jaunty.html?referer=');">Jesse Hallet</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidsiegel.org/haskell-platform-in-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
