Re: [Haskell-cafe] Encoding the encoding type of a string into its type

2010-06-11 Thread Felipe Lessa
On Fri, Jun 11, 2010 at 04:17:25PM +0200, Christopher Done wrote: > There are a lot of issues with string encoding type mismatches. > Especially "automatic" conversions. This mailing list gets enough > posts about encoding confusions. > > Would it make sense to make the string depend on its encodin

[Haskell-cafe] Encoding the encoding type of a string into its type

2010-06-11 Thread Christopher Done
There are a lot of issues with string encoding type mismatches. Especially "automatic" conversions. This mailing list gets enough posts about encoding confusions. Would it make sense to make the string depend on its encoding type? E.g. a String UTF16 cannot be used with putStrLn :: String UTF8, i