[Haskell-cafe] Re: [ANN] text 0.7, fast Unicode text

Ashley Yakeley ashley at semantic.org
Tue Dec 15 23:03:49 EST 2009

Bryan O'Sullivan wrote:
> The new 0.7 release of the text package 
> <http://hackage.haskell.org/package/text> adds support for Unicode I/O, 
> using either the new locale-aware Handle code in 6.12 or a fallback on 
> older releases.
> Details: http://www.serpentine.com/blog/2009/12/15/data-text-0-7-gains-io-support/

How do you pack Unicode codepoints into Word16? Do you use UTF-16?

Supposing -

   s = "\x010A60\x010A61" -- Old South Arabian script
   t = pack s

Is (unpack t) the same as s? What is (length t)?

Ashley Yakeley

More information about the Haskell-Cafe mailing list