on master help sign in
Reword docs to mention which exception is thrown

Follow-up to 589af770acce3e3f8ae15041555c180fba1070dc

commit9c141bc6d2b4abf44433876503d56c45f3a41741 authorHerbert Valerio Riedel <hvr@gnu.org> dateWed 27 Dec 2017, 12:04 (9 years ago) parent589af77
1 file changed+3−3
Data/Text/IO.hs+3−3
Data/Text/IO.hs+3−3
@@ -337,6 +337,6 @@ putStrLn = hPutStrLn stdout
337337-- > putStr_Utf16LE :: Text -> IO ()
338338-- > putStr_Utf16LE t = B.putStr (encodeUtf16LE t)
339339--
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".
340+-- On transcoding errors, an 'IOError' exception is thrown. You can
341+-- use the API in "Data.Text.Encoding" if you need more control over
342+-- error handling or transcoding.