<div class="gmail_quote">On Tue, Jun 5, 2012 at 9:12 AM, Warren Harris <span dir="ltr">&lt;<a href="mailto:warrensomebody@gmail.com" target="_blank">warrensomebody@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
which helps in many cases, but for some the parsing seems bi-stable, alternating between two imprecise double values and causing the test to fail. I was wondering if anyone could suggest a better work-around for this problem, or explain why Attoparsec&#39;s double parser can&#39;t be isomorphic to haskell&#39;s.<br>
</blockquote><div><br></div><div>If you need the full precision, use rational instead. The double parser is there because parsing floating point numbers is often a bottleneck, and double intentionally trades speed for precision. </div>
</div>