on master help sign in
Merge pull request #613 from lspitzner/patch-1
733e323Adam Bergmark
Data/Aeson/Text.hs+2−2
@@ -46,8 +46,8 @@ encodeToLazyText = LT.decodeUtf8 . encodingToLazyByteString . toEncoding
46-- embedded efficiently in a text-based protocol.
46-- embedded efficiently in a text-based protocol.
47--
47--
48-- If you are going to immediately encode straight to a
48-- If you are going to immediately encode straight to a
49−-- 'L.ByteString', it is more efficient to use 'encodeToBuilder'
49+-- 'L.ByteString', it is more efficient to use 'encode' (lazy ByteString)
50−-- instead.
50+-- or @'fromEncoding' . 'toEncoding'@ (ByteString.Builder) instead.
51--
51--
52-- /Note:/ Uses 'toJSON'
52-- /Note:/ Uses 'toJSON'
53encodeToTextBuilder :: ToJSON a => a -> Builder
53encodeToTextBuilder :: ToJSON a => a -> Builder