We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83ae4f9 + 7f3e411 commit 733e323Copy full SHA for 733e323
Data/Aeson/Text.hs
@@ -46,8 +46,8 @@ encodeToLazyText = LT.decodeUtf8 . encodingToLazyByteString . toEncoding
46
-- embedded efficiently in a text-based protocol.
47
--
48
-- If you are going to immediately encode straight to a
49
--- 'L.ByteString', it is more efficient to use 'encodeToBuilder'
50
--- instead.
+-- 'L.ByteString', it is more efficient to use 'encode' (lazy ByteString)
+-- or @'fromEncoding' . 'toEncoding'@ (ByteString.Builder) instead.
51
52
-- /Note:/ Uses 'toJSON'
53
encodeToTextBuilder :: ToJSON a => a -> Builder
0 commit comments