packages feed

formatting 6.3.4 → 6.3.5

raw patch · 3 files changed

+8/−4 lines, 3 filesdep ~basedep ~bytestringPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, bytestring

API changes (from Hackage documentation)

- Formatting.Internal: instance Data.Semigroup.Semigroup (Formatting.Internal.Format r (a -> r))
- Formatting.Internal: instance a ~ r => Data.String.IsString (Formatting.Internal.Format r a)
+ Formatting.Internal: instance (a ~ r) => Data.String.IsString (Formatting.Internal.Format r a)
+ Formatting.Internal: instance GHC.Base.Semigroup (Formatting.Internal.Format r (a -> r))
- Formatting.Internal: Format :: ((Builder -> r) -> a) -> Format r a
+ Formatting.Internal: Format :: (Builder -> r) -> a -> Format r a

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+6.3.5++* Avoid pointless conversions on Float/Double.+ 6.3.3  * The `Data.Text.Format` hierarchy was reexported as
formatting.cabal view
@@ -1,5 +1,5 @@ name:                formatting-version:             6.3.4+version:             6.3.5 synopsis:            Combinator-based type-safe formatting (like printf() or FORMAT) description:         Combinator-based type-safe formatting (like printf() or FORMAT), modelled from the HoleyMonoids package. license:             BSD3
src/Formatting/Buildable.hs view
@@ -125,11 +125,11 @@     build a = build (numerator a) F.<> singleton '/' F.<> build (denominator a)  instance Buildable Float where-    build = fromText . T.decodeUtf8 . L.toStrict . L.toLazyByteString . L.floatDec-    {-# INLINE build #-};+    build = build . show+    {-# INLINE build #-}  instance Buildable Double where-    build = fromText . T.decodeUtf8 . L.toStrict . L.toLazyByteString . L.doubleDec+    build = build . show     {-# INLINE build #-}  instance Buildable DiffTime where