[Haskell-cafe] Copying Arrays

Bryan O'Sullivan bos at serpentine.com
Thu May 29 13:07:26 EDT 2008


Tom Harper wrote:
> I'm trying to implement some file I/O where I can read in a file to an
> array, but do so without having to know how much space I will need.

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.

	<b


More information about the Haskell-Cafe mailing list