formatting icon indicating copy to clipboard operation
formatting copied to clipboard

Format strings type-safely with combinators

Results 11 formatting issues
Sort by recently updated
recently updated
newest added

Fixes #80. I had to adjust the existing non-double-conversion code since it was failing tests.

The double-conversion dependency seems quite heavy and there are many use-cases that don't need formatting of floating point. So I'd like to suggest the idea of putting the usage of...

On Windows 10, 64-bit, GHC 8.10.7 If using formatting version 6.3.7 this small program works. It prints "Hello" and "Tre: 3". ``` {-# LANGUAGE OverloadedStrings #-} module Main where import...

... with `trace`, `traceIO` and `traceM` formatting variants of same functions in `Debug.Trace`.

Related idea is to have `` operator to do the same thing for ``. Then ```haskell let formatPeople = format (int % " " plural "person" "people" % ".") ```...

I'd like to be able to increase the time precision, so we would see things like "36 hours", "90 minutes", etc.

This program crashes when built with `+no-double-conversion`: ```haskell import Formatting import Data.Text (unpack) main = putStrLn $ unpack $ sformat float (-1.0 :: Double) ``` Error message: ``` Numeric.showInt: can't...

Adds a `Buildable` instance for `Numeric.Natural`

Maybe I'm doing something wrong, but: ``` ghci> sformat float (-1::Int) "*** Exception: Numeric.showInt: can't show negative numbers ghci> sformat float (-1::Int) "*** Exception: Numeric.showInt: can't show negative numbers ghci>...