[Haskell-cafe] lazy strings and parallel read

Manlio Perillo manlio_perillo at libero.it
Fri Sep 19 12:56:04 EDT 2008


Manlio Perillo ha scritto:
> Hi.
> 
> After having read
> http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390 
> 
> 
> I have a doubt about Data.ByteString.Lazy.
> 
> Why getContents function don't use pread (or an emulation, if not 
> available)?
> 

A correction.
getContents should not use pread, so the question is:
why there is not a
   hParGetContents Handle -> Integer -> IO ByteString
function, where Integer is the absolute file offset where start to read?


Thanks  Manlio Perillo


More information about the Haskell-Cafe mailing list