text-builder 0.6.2 → 0.6.3
raw patch · 2 files changed
+8/−1 lines, 2 files
Files
- library/Text/Builder.hs +7/−0
- text-builder.cabal +1/−1
library/Text/Builder.hs view
@@ -38,6 +38,8 @@ -- ** Digits decimalDigit, hexadecimalDigit,+ -- ** Real+ fixedDouble, -- ** Time intervalInSeconds, )@@ -317,3 +319,8 @@ padFromLeft 2 '0' (decimal hours) <> ":" <> padFromLeft 2 '0' (decimal minutes) <> ":" <> padFromLeft 2 '0' (decimal seconds)++{-| Double with a fixed number of decimal places. -}+{-# INLINE fixedDouble #-}+fixedDouble :: Int {-^ Amount of decimals after point. -} -> Double -> Builder+fixedDouble decimalPlaces = fromString . printf ("%." ++ show decimalPlaces ++ "f")
text-builder.cabal view
@@ -1,5 +1,5 @@ name: text-builder-version: 0.6.2+version: 0.6.3 category: Text synopsis: An efficient strict text builder homepage: https://github.com/nikita-volkov/text-builder