<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: migrating from happstack 0.1 to happstack 0.3</title>
	<atom:link href="http://blog.patch-tag.com/2009/10/30/migrating-from-happstack-0-1-to-happstack-0-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.patch-tag.com/2009/10/30/migrating-from-happstack-0-1-to-happstack-0-3/</link>
	<description>give your code a home</description>
	<lastBuildDate>Fri, 13 Jul 2012 17:30:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jeremy Shaw</title>
		<link>http://blog.patch-tag.com/2009/10/30/migrating-from-happstack-0-1-to-happstack-0-3/#comment-79</link>
		<dc:creator><![CDATA[Jeremy Shaw]]></dc:creator>
		<pubDate>Sat, 31 Oct 2009 03:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.patch-tag.com/?p=246#comment-79</guid>
		<description><![CDATA[Instead of:

ServerPartT $ ReaderT $ \rq -&gt; do ...

you can probably write:

do rq &lt;- askRq
     ...

Also, It&#039;s not obvious from the context why you are using runServerPartT. If it is because you wanted to modify the incoming request somehow, you might consider localRq instead.

An advantage of using askRq and localRq over explicit matching is that they work in any monad for which there is a ServerMonad instance. This will sound more useful once I have my latest happstack demo running and you can see the source.

Anyway, those are just happstack 3.x stylistic changes. The code you wrote should work fine too.

- jeremy]]></description>
		<content:encoded><![CDATA[<p>Instead of:</p>
<p>ServerPartT $ ReaderT $ \rq -&gt; do &#8230;</p>
<p>you can probably write:</p>
<p>do rq &lt;- askRq<br />
     &#8230;</p>
<p>Also, It&#039;s not obvious from the context why you are using runServerPartT. If it is because you wanted to modify the incoming request somehow, you might consider localRq instead.</p>
<p>An advantage of using askRq and localRq over explicit matching is that they work in any monad for which there is a ServerMonad instance. This will sound more useful once I have my latest happstack demo running and you can see the source.</p>
<p>Anyway, those are just happstack 3.x stylistic changes. The code you wrote should work fine too.</p>
<p>- jeremy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
