diff --git a/Data/ByteString/Builder/RealFloat.hs b/Data/ByteString/Builder/RealFloat.hs index 4cbbeaa9b..6d71b867c 100644 --- a/Data/ByteString/Builder/RealFloat.hs +++ b/Data/ByteString/Builder/RealFloat.hs @@ -254,6 +254,8 @@ digits w = go [] w in go ((R.word64ToInt r) : ds) q -- | Show a floating point value in standard notation. Based on GHC.Float.showFloat +-- TODO: Remove the use of String and lists because it makes this very slow compared +-- to the actual implementation of the Ryu algorithm. showStandard :: Word64 -> Int -> Maybe Int -> Builder showStandard m e prec = case prec of