
7 Jun
2011
7 Jun
'11
4:14 p.m.
On Tue, 7 Jun 2011 16:09:41 +0200
Daniel Fischer
I'm not sure if it is obvious where my mistake here lies. If not I have to try to make this a working minimal example.
I wrote:
If you force the result before closing the handle, enough of the file is read to find the desired elements,
You're not forcing the result. You can choose to force in getXmlContent by seq'ing on name, location and whatever else fields you have, then using a strict return (return $! m') in the withBinaryFile action is sufficient, or you can do all the forcing in the withBinaryFile action, for example
Somehow I had not really understood your first answer. Indeed return $! m' does it nicely. -- Thanks, Manfred