Sorry, I don&#39;t think I&#39;m following. What would the meaning of the value returned from checkRedirect be?<div><br></div><div>--Myles<br><br><div class="gmail_quote">On Tue, Jan 24, 2012 at 10:47 AM, Michael Snoyman <span dir="ltr">&lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jan 24, 2012 at 6:57 PM, Myles C. Maxfield<br>
<div class="im">&lt;<a href="mailto:myles.maxfield@gmail.com">myles.maxfield@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Mon, Jan 23, 2012 at 10:43 PM, Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jan 24, 2012 at 8:37 AM, Myles C. Maxfield<br>
&gt;&gt; &lt;<a href="mailto:myles.maxfield@gmail.com">myles.maxfield@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; I have attached a patch to add a redirect chain to the Response<br>
&gt;&gt; &gt; datatype.<br>
&gt;&gt; &gt; Comments on this patch are very welcome.<br>
&gt;&gt;<br>
&gt;&gt; I thought that this isn&#39;t necessary since a client wanting to track<br>
&gt;&gt; all the redirects could just handle them manually by setting the<br>
&gt;&gt; redirect count to 0.<br>
&gt;<br>
&gt; It seems like a lot of work to re-implement the redirection-following code,<br>
&gt; just to know which URL the bytes are coming from.  I feel that adding this<br>
&gt; field makes the library easier to use, but it&#39;s your call.<br>
<br>
</div>If that&#39;s the concern, I&#39;d much rather just expose a function to help<br>
with dealing with redirects, rather than sticking a rather arbitrary<br>
[Ascii] in everyone&#39;s Response. I think a function along the lines of:<br>
<br>
checkRedirect :: Response -&gt; Maybe Request<br>
<br>
would fit the bill, and could be extracted from the current `http` function.<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
</font></span></blockquote></div><br></div>