<?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: Fun with Haskell view patterns</title>
	<atom:link href="http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/</link>
	<description>Bryan O&#039;Sullivan&#039;s blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:41:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Twan van Laarhoven</title>
		<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/comment-page-1/#comment-201523</link>
		<dc:creator>Twan van Laarhoven</dc:creator>
		<pubDate>Sun, 11 Jan 2009 16:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.serpentine.com/blog/?p=318#comment-201523</guid>
		<description>Instead of writing your own &#039;dropPrefix&#039;, there is also the standard &#039;stripPrefix :: Eq a =&gt; [a] -&gt; [a] -&gt; Maybe [a]&#039;, which you can also use with view patterns:

     {-# LANGUAGE ViewPatterns #-}
     genbankHeader (stripPrefix &quot;&gt;gi&#124;&quot; -&gt; Just rest) = muddle rest</description>
		<content:encoded><![CDATA[<p>Instead of writing your own &#8216;dropPrefix&#8217;, there is also the standard &#8216;stripPrefix :: Eq a =&gt; [a] -&gt; [a] -&gt; Maybe [a]&#8216;, which you can also use with view patterns:</p>
<p>     {-# LANGUAGE ViewPatterns #-}<br />
     genbankHeader (stripPrefix &#8220;&gt;gi|&#8221; -&gt; Just rest) = muddle rest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan O'Sullivan</title>
		<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/comment-page-1/#comment-201522</link>
		<dc:creator>Bryan O'Sullivan</dc:creator>
		<pubDate>Sun, 11 Jan 2009 15:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.serpentine.com/blog/?p=318#comment-201522</guid>
		<description>Oops, thanks for noticing those thinkos, gentlemen. That&#039;s what I get for composing a post at midnight!</description>
		<content:encoded><![CDATA[<p>Oops, thanks for noticing those thinkos, gentlemen. That&#8217;s what I get for composing a post at midnight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alf</title>
		<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/comment-page-1/#comment-201520</link>
		<dc:creator>Alf</dc:creator>
		<pubDate>Sun, 11 Jan 2009 15:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.serpentine.com/blog/?p=318#comment-201520</guid>
		<description>Marc: presumably &#039;after&#039; was the original name of dropPrefix. Rename it, and the function starts working.

The &#039;otherwise&#039; line is unnecessary, btw.</description>
		<content:encoded><![CDATA[<p>Marc: presumably &#8216;after&#8217; was the original name of dropPrefix. Rename it, and the function starts working.</p>
<p>The &#8216;otherwise&#8217; line is unnecessary, btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/comment-page-1/#comment-201514</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sun, 11 Jan 2009 12:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.serpentine.com/blog/?p=318#comment-201514</guid>
		<description>I don&#039;t know about newer GHCs, but in 6.8.1, dropPrefix &quot;foo&quot; &quot;foobar&quot; gives a pattern match error (since left becomes [] after some time).
Also, what is the &quot;after&quot; function for?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know about newer GHCs, but in 6.8.1, dropPrefix &#8220;foo&#8221; &#8220;foobar&#8221; gives a pattern match error (since left becomes [] after some time).<br />
Also, what is the &#8220;after&#8221; function for?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joachim Breitner</title>
		<link>http://www.serpentine.com/blog/2009/01/11/fun-with-haskell-view-patterns/comment-page-1/#comment-201507</link>
		<dc:creator>Joachim Breitner</dc:creator>
		<pubDate>Sun, 11 Jan 2009 11:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.serpentine.com/blog/?p=318#comment-201507</guid>
		<description>Is there a copyâ€™nâ€™paste error in 
 Prelude&gt; dropPrefix &quot;foolish&quot; &quot;football&quot;
 (&quot;lish&quot;, &quot;ball&quot;)
which should rather be
 Prelude&gt; dropPrefix &quot;foolish&quot; &quot;football&quot;
 (&quot;lish&quot;, &quot;tball&quot;)
?</description>
		<content:encoded><![CDATA[<p>Is there a copyâ€™nâ€™paste error in<br />
 Prelude&gt; dropPrefix &#8220;foolish&#8221; &#8220;football&#8221;<br />
 (&#8220;lish&#8221;, &#8220;ball&#8221;)<br />
which should rather be<br />
 Prelude&gt; dropPrefix &#8220;foolish&#8221; &#8220;football&#8221;<br />
 (&#8220;lish&#8221;, &#8220;tball&#8221;)<br />
?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

