floatshow

Alternative faster String representations for Double and Float, String representations for more general numeric types.

https://bitbucket.org/dafis/floatshow

LTS Haskell 22.43:0.2.4
Stackage Nightly 2024-11-24:0.2.4
Latest on Hackage:0.2.4

See all snapshots floatshow appears in

BSD-3-Clause licensed by Daniel Fischer
Maintained by [email protected]
This version can be pinned in stack with:floatshow-0.2.4@sha256:352f05477f4caed752882d0d44619065c694ee3af9f7b6bb4c9b34711e0dde0b,3532

Module documentation for 0.2.4

Used by 1 package in nightly-2024-11-02(full list with versions):

The String representations provided by this package are generally longer than show's output, which constructs the shortest string that is parsed as the original number by read. This requires some time-consuming checks, so show is slow for floating-point numbers. By producing a digit-string guaranteed to be long enough to uniquely determine the number without caring whether there's a shorter representation, the display functions of this package can be faster, sometimes by a big margin. Text.FShow.Raw provides building blocks for representations of numeric types which don't belong to RealFloat but have some of its functionality. The bulk of the code is a minor modification of code from the base package, whence the GHC License is included as an extra-source-file.