on master help sign in
Document that Data.Text.IO throws on decoding failure
589af77rightfold
Data/Text/IO.hs+4
@@ -336,3 +336,7 @@ putStrLn = hPutStrLn stdout
336-- >
336-- >
337-- > putStr_Utf16LE :: Text -> IO ()
337-- > putStr_Utf16LE :: Text -> IO ()
338-- > putStr_Utf16LE t = B.putStr (encodeUtf16LE t)
338-- > 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".