[Haskell-cafe] Re: String vs ByteString

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue Aug 17 06:59:44 EDT 2010


Miguel Mitrofanov <miguelimo38 at yandex.ru> writes:

> Ivan Lazar Miljenovic wrote:
>> Tom Harper <rtomharper at gmail.com> writes:
>>
>>> 2010/8/17 Bulat Ziganshin <bulat.ziganshin at gmail.com>:
>>>> Hello Tom,
>>> <snip>
>>>
>>>> i don't understand what you mean. are you support all 2^20 codepoints
>>>> in Data.Text package?
>>> Bulat,
>>>
>>> Yes, its internal representation is UTF-16, which is capable of
>>> encoding *any* valid Unicode codepoint.
>>
>> Just like Char is capable of encoding any valid Unicode codepoint.
>>
>
> Char is not an encoding, right?

No, but in GHC at least it corresponds to a Unicode codepoint.


-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list