1

It is possible to convert a string to a TextEncoding using

mkTextEncoding :: String -> IO TextEncoding

Is there any way to do do the reverse? Or, given a TextEncoding, any way to find out any information about that encoding? There doesn't even seem to be an Eq instance for TextEncoding to allow comparing against the defined encodings in System.IO.

Am I missing something, or is there a technical reason why this should not be possible?

1

1 Answer 1

2

TextEncoding will be a member of the Show class in GHC 7.0.1. See ticket #4273.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.