AJChapman / formatting

Format strings type-safely with combinators
BSD 3-Clause "New" or "Revised" License
164 stars 39 forks source link

int formatter does not output the precise value #31

Closed howsiwei closed 6 years ago

howsiwei commented 6 years ago
> import qualified Formatting as F
> F.format F.int (10^16 - 1)
"10000000000000000"

This is because F.int relies on shortest in text-format, which is a formatter for real value.

chrisdone commented 6 years ago

Added regression test for this.