[Haskell] lazy file reader

Atila Romero atilaromero at yahoo.com.br
Thu Feb 16 12:03:29 EST 2006


Im starting in haskell, and wish to develop a program to process hd
images, searching for file specific patterns.
I will have to deal with situations where I only want to read the end of
the image.
My problem is: if I use hGetContents to that, the beginning of the file
will allways be readen, even if only the end is important.
Is there any way to tell the compiller to be 'more lazy' so if appears
content!!100000 it skips a lot of data?
Im not concearned with concurrency here.


More information about the Haskell mailing list