[Haskell-cafe] Copying Arrays

Jed Brown jed at 59A2.org
Thu May 29 14:35:14 EDT 2008

On Thu 2008-05-29 19:19, Tom Harper wrote:
> > Why not just read it into a lazy ByteString?  Are you looking to use an
> > array with elements of a different type?  You could then convert it to a
> > strict ByteString.
> >
> Because I'm writing the Unicode-friendly ByteString =p

Uh, ByteString is Unicode-agnostic.  ByteString.Char8 is not.  So why not do IO
with lazy ByteString and parse into your own representation (which might look a
lot like StorableVector)?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080529/57675d78/attachment.bin

More information about the Haskell-Cafe mailing list