[Haskell-cafe] attoparsec double precision, quickCheck and aeson
Johan Tibell
johan.tibell at gmail.com
Tue Jun 5 19:55:59 CEST 2012
On Tue, Jun 5, 2012 at 10:51 AM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> 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.
Relevant code in
https://github.com/bos/attoparsec/blob/master/Data/Attoparsec/ByteString/Char8.hs
-- Johan
More information about the Haskell-Cafe
mailing list