Skip to content

Latest commit

 

History

History
112 lines (73 loc) · 3.4 KB

CHANGELOG.md

File metadata and controls

112 lines (73 loc) · 3.4 KB

7.2.0

  • Added FromBuilder and formatted to simplify using formatting with other APIs (thanks Kyle Butt).
  • Updated examples in comments to pass cabal-docspec (thanks Kyle Butt).
  • Fixed haddock parsing in ghc-8.8.4 (thanks Oleg Grenrus).
  • Generalised IO printing functions to use MonadIO (thanks Oleg Grenrus).
  • Added (%+) and (<%+>) for appending formatters with a space between them, the latter also behaving like (<>) (thanks Oleg Grenrus).
  • Allow building with Cabal 2.2 (thanks Jens Petersen).
  • Removed unused dependency on ghc-prim
  • Add a no-double-conversion build flag to optionally remove the dependency on double-conversion (Thanks Janus Troelsen)
  • The no-double-conversion flag also fixes the build on GHC 9.4 on which double-conversion is apparently broken

7.1.3

  • Fix the GHCJS build by not using double-conversion, as it relies on a native C library which obviously isn't available in GHCJS (it is still used in native builds).

7.1.2

  • Removed direct dependency on integer-gmp, instead using very similar code from the text package. This changed the implementation of build for Integer, which results in better performance in some cases, and no performance degradation. See the benchmarking reports in bench/reports for more details.
  • formatting now compiles on GHCJS (due to the change above).
  • Added some benchmarking, starting based on code from the string-interpolate package.
  • Added INLINE pragmas to many very short functions. Results in better performance in the benchmarks.

7.1.1

  • Added charsKeptIf and charsRemovedIf.

7.1.0

  • Added common container formatter combinators: maybed, optioned, eithered, lefted, and righted.

7.0.0.2

  • Removed unnecessary dependencies on array and bytestring
  • Actually removed code to support GHC < 8.4

7.0.0.1

  • Added README.md to extra-source-files so it shows up on Hackage

7.0.0

  • Introduced Formatting.Combinators.
  • Fixed: #62 and #60: incorrect formatting of Integral types that do not have negative values (e.g. Word)
  • Fixed: #59 rendering of floats e.g. 0.01 as "0.01" rather than "1.0e-2"
  • Added dependency of double-conversion to provide fast and correct rendering of floating-point numbers (including the fix for #59).
  • Make compatible with bytestring-0.11.0.0
  • Removed -O2 ghc flag
  • Updated .cabal file version from 1.8 to 2.4
  • Drop support for GHC < 8.4

6.3.7

  • Introduced instance Buildable a => Buildable [a].

6.3.6

  • Bring back int :: Integral a => Format r (a -> r)

6.3.5

  • Avoid pointless conversions on Float/Double.

6.3.3

  • The Data.Text.Format hierarchy was reexported as Formatting.Internal.Raw.

6.3.1

  • Proper GHC 7.10 -> GHC 8.4 support

6.3.0

  • Folded the text-format package into this package, removed the double-conversion dependency. Lost the following functions in this:
    • prec
    • expt
  • Added a test suite with regression tests:

6.2.5

  • Changed microseconds to display as "us" to avoid unicode issues.

6.2.1

  • Added bytesDecimal

6.2.0

  • Dropped Holey/HoleyT in favour of simpler Format type.
  • Added Monoid instance.
  • Added back Category instance.
  • Dropped Functor instance.

6.1.1

  • Add support for GHC 7.10 (time update).

6.1.0

  • Add formatter for TimeSpec.

6.0.0

  • Changed the type of Format. Now you write Format r (a -> r) instead of Format a.
  • Add formatToString function.