Proposal #3337: expose Unicode and newline translation from System.IO

Ian Lynagh igloo at earth.li
Sun Jul 5 08:15:13 EDT 2009


On Tue, Jun 30, 2009 at 01:03:17PM +0100, Simon Marlow wrote:
>
>  * http://www.haskell.org/~simonmar/base/System-IO.html#23
>    System.IO (Unicode encoding/decoding)

Is it possible to make an
    availableEncodings :: IO [(String, TextEncoding)]
?

Also, mkTextEncoding says that it throws an isDoesNotExistError if the
named encoding doesn't exist, but the code in base at least looks like
it throws InvalidArgument on Windows, and nothing on other platforms.
Perhaps it's different in your tree, though.


Thanks
Ian



More information about the Libraries mailing list