on master help sign in
Fix doc mentioning encodeToBuilder (fixes #612)

[ci skip]

commit7f3e411eeba9b232b4a07d6cac10b5896f4edea9 authorLennart Spitzner <hexagoxel@hexagoxel.de> dateWed 13 Dec 2017, 14:12 (9 years ago) parent83ae4f9
1 file changed+2−2
Data/Aeson/Text.hs+2−2
Data/Aeson/Text.hs+2−2
@@ -46,8 +46,8 @@ encodeToLazyText = LT.decodeUtf8 . encodingToLazyByteString . toEncoding
4646-- embedded efficiently in a text-based protocol.
4747--
4848-- If you are going to immediately encode straight to a
49−-- 'L.ByteString', it is more efficient to use 'encodeToBuilder'
50−-- instead.
49+-- 'L.ByteString', it is more efficient to use 'encode' (lazy ByteString)
50+-- or @'fromEncoding' . 'toEncoding'@ (ByteString.Builder) instead.
5151--
5252-- /Note:/ Uses 'toJSON'
5353encodeToTextBuilder :: ToJSON a => a -> Builder