<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Signals in Haskell</title>
	<atom:link href="http://therning.org/magnus/archives/285/feed" rel="self" type="application/rss+xml" />
	<link>http://therning.org/magnus/archives/285</link>
	<description>Incoherent mumblings</description>
	<lastBuildDate>Wed, 08 Aug 2012 00:21:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Andrew Pennebaker</title>
		<link>http://therning.org/magnus/archives/285/comment-page-1#comment-211772</link>
		<dc:creator>Andrew Pennebaker</dc:creator>
		<pubDate>Mon, 07 Feb 2011 21:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/285#comment-211772</guid>
		<description><![CDATA[&lt;p&gt;Thanks for the example code!&lt;/p&gt;

&lt;p&gt;I would like my Haskell program to exitFailure when the program is interrupted, so I changed the handler function to this:&lt;/p&gt;

&lt;p&gt;import System.Exit (exitFailure)&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;handler :: MVar Int -&gt; IO ()
handler mi = do
    i &lt;- takeMVar mi
    putStrLn &quot;In handler&quot;
    exitFailure&lt;/p&gt;

&lt;p&gt;But when I run this code, the program doesn&#039;t actually exit. It just prints out a notice that main.hs raised exitWith (Failure 1).&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Thanks for the example code!</p>

<p>I would like my Haskell program to exitFailure when the program is interrupted, so I changed the handler function to this:</p>

<p>import System.Exit (exitFailure)</p>

<p>&#8230;</p>

<p>handler :: MVar Int -&gt; IO ()
handler mi = do
    i &lt;- takeMVar mi
    putStrLn &#8220;In handler&#8221;
    exitFailure</p>

<p>But when I run this code, the program doesn&#8217;t actually exit. It just prints out a notice that main.hs raised exitWith (Failure 1).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus</title>
		<link>http://therning.org/magnus/archives/285/comment-page-1#comment-43846</link>
		<dc:creator>Magnus</dc:creator>
		<pubDate>Thu, 17 May 2007 22:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/285#comment-43846</guid>
		<description><![CDATA[&lt;p&gt;Thanks, Dominique.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Thanks, Dominique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominique Valentine</title>
		<link>http://therning.org/magnus/archives/285/comment-page-1#comment-40735</link>
		<dc:creator>Dominique Valentine</dc:creator>
		<pubDate>Sat, 12 May 2007 23:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/285#comment-40735</guid>
		<description><![CDATA[&lt;p&gt;I enjoy your blog.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>I enjoy your blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
