haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Copying Arrays

Subject: Re: [Haskell-cafe] Copying Arrays
From: Bryan O'Sullivan
Date: Thu, 29 May 2008 10:07:26 -0700
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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>