on master help sign in
Reword docs to mention which exception is thrown
9c141bcHerbert Valerio Riedel
Data/Text/IO.hs+3−3
@@ -337,6 +337,6 @@ putStrLn = hPutStrLn stdout
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--
339--
340−-- If transcoding fails, an exception is thrown. If this behavior is
340+-- On transcoding errors, an 'IOError' exception is thrown. You can
341−-- undesired, will have to perform the transcoding yourself, likewise
341+-- use the API in "Data.Text.Encoding" if you need more control over
342−-- by using functions from "Data.ByteString" and "Data.Text.Encoding".
342+-- error handling or transcoding.