Hello,<div><br></div><div>Is there some clean way to implement a function like:</div><div><br></div><div>c2s :: GenParser Char () a -&gt; GenParser String () a</div><div><br></div><div>so that we can use Char parsers inside the URL Parser?</div>
<div><br></div><div>the trivial implementation would be something like:</div><div><br></div><div><a href="http://moonpatio.com:8080/fastcgi/hpaste.fcgi/view?id=8965#a8965">http://moonpatio.com:8080/fastcgi/hpaste.fcgi/view?id=8965#a8965</a></div>
<div><br></div><div>but that does not do a very good job of reporting the position of parse errors.</div><div><br></div><div>- jeremy</div><div><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 4:11 PM, Chris Eidhof <span dir="ltr">&lt;<a href="mailto:chris@eidhof.nl" target="_blank">chris@eidhof.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px">Hey,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px">

<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px">I&#39;ve added a darcs patch (I hope it worked, I&#39;m a darcs newbie) to switch the URL parser to parsec. This simplifies the code a lot. I&#39;ve used String&#39;s (i.e. the URL path components) as tokens for the parser. What do you guys think?</div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px">

I&#39;m sorry I haven&#39;t been replying to the type-safe URL handling, I was busy with writing this week. The discussion has become quite large! I&#39;ll see if I can catch up somewhere this weekend.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 0, 0);min-height:16px">

<br></div><font color="#888888"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Monaco" size="3" color="#000000" style="font:12.0px Monaco;color:#000000">-chris</font></div></font></div>

</div><br><div style="word-wrap:break-word"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"></div></div></div><br></blockquote></div><br></div>