text-format icon indicating copy to clipboard operation
text-format copied to clipboard

A Haskell text formatting library optimized for ease of use and high performance.

Results 16 text-format issues
Sort by recently updated
recently updated
newest added

It seems like Hackage has a version of the codebase slightly ahead of this repo, but on Hackage, `Data.Text.Format.Int` imports everything from `GHC.Integer.GMP.Internals`. But `base-4.15` adds `quotRemInteger` to `GHC.Num`, making...

This builds on GHC 8.4-alpha1, 8.0.2 and 7.10.3. Fixes #17

Not sure if this lib is actively maintained but, here is updates for GHC-9.0 Support and some previous Semigroup-Monoid Compatibility changes. The library compiles fine and the benchmarks seem to...

``` Data/Text/Format/Functions.hs:16:7: error: Ambiguous occurrence ‘’ It could refer to either ‘GHC.Base.’, imported from ‘GHC.Base’ at Data/Text/Format/Functions.hs:22:1-15 or ‘Data.Text.Format.Functions.’, defined at Data/Text/Format/Functions.hs:32:1 | 16 | () | ^^^^ ```

This package fails to build with `ghc-8.8.1`. It looks like the upper bound version of `base` is too low.

``` Building library for text-format-0.3.1.1.. [1 of 7] Compiling Data.Text.Format.Functions ( Data/Text/Format/Functions.hs, .stack-work/dist/x86_64-osx/Cabal-2.2.0.0/build/Data/Text/Format/Functions.o ) /Users/dan/scratch/text-format-0.3.1.1/Data/Text/Format/Functions.hs:16:7: error: Ambiguous occurrence ‘’ It could refer to either ‘GHC.Base.’, imported from ‘GHC.Base’ at Data/Text/Format/Functions.hs:22:1-15...

This would make it compatible with preludes that match `` to `Semigroup` instead of `Monoid`.

Where is the documentation for what is/isn't a valid format string? From the example in the haddocks I was able to infer that "{}" gets replaced, but is that all...

We're using text-format-0.3.1.1 ``` Data.Text.Buildable Prelude> build (minBound :: Int) "-0" ``` `Integer` is also affected which is a weirder/worse case: ``` Data.Text.Buildable Prelude> build (-9223372036854775807 :: Integer) "-9223372036854775807" Data.Text.Buildable...