<?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: Playing with Haskell</title>
	<atom:link href="http://redlinernotes.com/blog/?feed=rss2&#038;p=937" rel="self" type="application/rss+xml" />
	<link>http://redlinernotes.com/blog/?p=937</link>
	<description></description>
	<lastBuildDate>Tue, 27 Jul 2010 00:47:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Improved Means For Achieving Deteriorated Ends / Almost Done</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-3804</link>
		<dc:creator>Improved Means For Achieving Deteriorated Ends / Almost Done</dc:creator>
		<pubDate>Tue, 07 Jul 2009 00:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-3804</guid>
		<description>[...] I probably should also wrap up the funnyWords programs in lisp and haskell with the suggested optimizations and some sort of review post. What are you guys up to?   Post a comment &#8212; Trackback URI RSS [...]</description>
		<content:encoded><![CDATA[<p>[...] I probably should also wrap up the funnyWords programs in lisp and haskell with the suggested optimizations and some sort of review post. What are you guys up to?   Post a comment &mdash; Trackback URI RSS [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Improved Means For Achieving Deteriorated Ends / Lisp is Lovable</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2995</link>
		<dc:creator>Improved Means For Achieving Deteriorated Ends / Lisp is Lovable</dc:creator>
		<pubDate>Wed, 27 May 2009 15:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2995</guid>
		<description>[...] to class but I thought I&#8217;d throw up a Lisp solution I coded to the Funny Words problem which I worked through in Haskell earlier. I used sb-ext:save-lisp-and-die thanks to a helpful guide to dump a core image and used [...]</description>
		<content:encoded><![CDATA[<p>[...] to class but I thought I&#8217;d throw up a Lisp solution I coded to the Funny Words problem which I worked through in Haskell earlier. I used sb-ext:save-lisp-and-die thanks to a helpful guide to dump a core image and used [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: solrize</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2731</link>
		<dc:creator>solrize</dc:creator>
		<pubDate>Thu, 14 May 2009 23:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2731</guid>
		<description>Looks like the blog comment software garbled up the code.  Please try:

http://hpaste.org/fastcgi/hpaste.fcgi/view?id=4895#a4895</description>
		<content:encoded><![CDATA[<p>Looks like the blog comment software garbled up the code.  Please try:</p>
<p><a href="http://hpaste.org/fastcgi/hpaste.fcgi/view?id=4895#a4895" rel="nofollow">http://hpaste.org/fastcgi/hpaste.fcgi/view?id=4895#a4895</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2708</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 14 May 2009 02:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2708</guid>
		<description>Solrize,

I can&#039;t get this to run in GHCi or compile in GHC as it complains &#039;ws&#039; is Not In Scope. I agree with it at first glance. I deleted your previous comment as you requested. If you have time to correct this, it would be most appreciated. I&#039;ll try to glean what I can from it. Thank you very much!</description>
		<content:encoded><![CDATA[<p>Solrize,</p>
<p>I can&#8217;t get this to run in GHCi or compile in GHC as it complains &#8216;ws&#8217; is Not In Scope. I agree with it at first glance. I deleted your previous comment as you requested. If you have time to correct this, it would be most appreciated. I&#8217;ll try to glean what I can from it. Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: solrize</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2684</link>
		<dc:creator>solrize</dc:creator>
		<pubDate>Wed, 13 May 2009 08:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2684</guid>
		<description>&lt;code&gt;-- cleaned up version, ignore earlier one
-- cosmicomics http://redlinernotes.com/blog/?p=937                             

import qualified  Data.Map as M
import qualified  Data.Set as S
import Data.List
import Data.Char (toLower, isAlpha)

-- convert word to lowercase and throw out nonalphabetics                       
canon :: String -&gt; String
canon word = filter isAlpha $ map toLower word

main = do
  wss&#039; &lt;- (readFile &quot;/usr/share/dict/words&quot;)
  let wss = [canon ws &#124; ws  1]
      dict = foldr (\ws-&gt;M.insertWith (++) (sort ws) [ws]) M.empty $ wss
      cosmics = do
         ws &lt;- wss
         let Just yss = M.lookup (sort ws) dict
             pss = [ys &#124; ys &lt;- yss, last ws == head ys]
             cs = [ws ++ (tail ps) &#124; ps &lt;- pss, ps /= ws]
         return cs
  mapM_ putStrLn (S.toList $ S.fromList $ concat cosmics)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>-- cleaned up version, ignore earlier one<br />
-- cosmicomics <a href="http://redlinernotes.com/blog/?p=937" rel="nofollow">http://redlinernotes.com/blog/?p=937</a>                             </p>
<p>import qualified  Data.Map as M<br />
import qualified  Data.Set as S<br />
import Data.List<br />
import Data.Char (toLower, isAlpha)</p>
<p>-- convert word to lowercase and throw out nonalphabetics<br />
canon :: String -&gt; String<br />
canon word = filter isAlpha $ map toLower word</p>
<p>main = do<br />
  wss' &lt;- (readFile "/usr/share/dict/words")<br />
  let wss = [canon ws | ws  1]<br />
      dict = foldr (\ws-&gt;M.insertWith (++) (sort ws) [ws]) M.empty $ wss<br />
      cosmics = do<br />
         ws &lt;- wss<br />
         let Just yss = M.lookup (sort ws) dict<br />
             pss = [ys | ys &lt;- yss, last ws == head ys]<br />
             cs = [ws ++ (tail ps) | ps &lt;- pss, ps /= ws]<br />
         return cs<br />
  mapM_ putStrLn (S.toList $ S.fromList $ concat cosmics)</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2479</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 May 2009 01:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2479</guid>
		<description>Glad you liked it, even if it was on the haskell subreddit. :)

I do like backwardrawback but I also really like creatoreactor!</description>
		<content:encoded><![CDATA[<p>Glad you liked it, even if it was on the haskell subreddit. <img src='http://redlinernotes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I do like backwardrawback but I also really like creatoreactor!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Cooper</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2478</link>
		<dc:creator>J Cooper</dc:creator>
		<pubDate>Mon, 04 May 2009 00:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2478</guid>
		<description>This was a neat article. I&#039;m glad it ended up on reddit even though you didn&#039;t want it to!

Btw, the best word from that list is &quot;backwardrawback&quot; :)</description>
		<content:encoded><![CDATA[<p>This was a neat article. I&#8217;m glad it ended up on reddit even though you didn&#8217;t want it to!</p>
<p>Btw, the best word from that list is &#8220;backwardrawback&#8221; <img src='http://redlinernotes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2462</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 03 May 2009 19:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2462</guid>
		<description>Well, thanks for stopping by and I&#039;m glad you found it enlightening. I&#039;m going to have to write a lot more Haskell before my mind is made up and I have anything concrete to say though. :)</description>
		<content:encoded><![CDATA[<p>Well, thanks for stopping by and I&#8217;m glad you found it enlightening. I&#8217;m going to have to write a lot more Haskell before my mind is made up and I have anything concrete to say though. <img src='http://redlinernotes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bender</title>
		<link>http://redlinernotes.com/blog/?p=937&#038;cpage=1#comment-2460</link>
		<dc:creator>John Bender</dc:creator>
		<pubDate>Sun, 03 May 2009 18:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://redlinernotes.com/blog/?p=937#comment-2460</guid>
		<description>I&#039;m glad my little question on Reddit has sparked conversation. The response you referred to highlights some of the issues that I had encountered so far but it&#039;s been enlightening to see the responses, including your own.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad my little question on Reddit has sparked conversation. The response you referred to highlights some of the issues that I had encountered so far but it&#8217;s been enlightening to see the responses, including your own.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
