on master help sign in
Document that Data.Text.IO throws on decoding failure
commit589af770acce3e3f8ae15041555c180fba1070dc authorrightfold <rightfold@gmail.com> dateSat 9 Dec 2017, 19:06 (9 years ago) parent3d888c2
1 file changed+4
Data/Text/IO.hs+4
Data/Text/IO.hs+4
@@ -336,3 +336,7 @@ putStrLn = hPutStrLn stdout
336336-- >
337337-- > putStr_Utf16LE :: Text -> IO ()
338338-- > putStr_Utf16LE t = B.putStr (encodeUtf16LE t)
339+--
340+-- If transcoding fails, an exception is thrown. If this behavior is
341+-- undesired, will have to perform the transcoding yourself, likewise
342+-- by using functions from "Data.ByteString" and "Data.Text.Encoding".