packages feed

formatting 6.2.4 → 6.2.5

raw patch · 4 files changed

+7/−2 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Formatting: runFormat :: Format r a -> (Builder -> r) -> a

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+6.2.5++* Changed microseconds to display as "us" to avoid unicode issues.+ 6.2.1  * Added bytesDecimal
formatting.cabal view
@@ -1,5 +1,5 @@ name:                formatting-version:             6.2.4+version:             6.2.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.hs view
@@ -27,6 +27,7 @@   later,   mapf,   -- * Top-level functions+  runFormat,   format,   sformat,   bprint,
src/Formatting/Clock.hs view
@@ -28,7 +28,7 @@           | Just i <- scale ((10 ^ 9) * 60) = bprint (fixed 2 % " m") i           | Just i <- scale (10 ^ 9) = bprint (fixed 2 % " s") i           | Just i <- scale (10 ^ 6) = bprint (fixed 2 % " ms") i-          | Just i <- scale (10 ^ 3) = bprint (fixed 2 % " µs") i+          | Just i <- scale (10 ^ 3) = bprint (fixed 2 % " us") i           | otherwise = bprint (int % " ns") diff           where scale :: Integer -> Maybe Double                 scale i = if diff >= i