Re: [Haskell-cafe] Hexpat: Lazy I/O problem with huge input files

2011-12-10 Thread thinkingeric
Hi Aleks, Did you (or anyone) ever resolve this? I'm having precisely the same problem. Eric Aleksandar Dimitrov wrote Hello Daniel, I don't know Hexpat at all, so I can only guess. Perhaps due to the laziness of let-bindings, mError keeps a reference to the entire tuple, thus

Re: [Haskell-cafe] Hexpat: Lazy I/O problem with huge input files

2010-10-14 Thread Aleksandar Dimitrov
Hello Daniel, I don't know Hexpat at all, so I can only guess. Perhaps due to the laziness of let-bindings, mError keeps a reference to the entire tuple, thus preventing tree from being garbage collected as it is consumed by print. Thanks for your input. I think you are right, the parse

[Haskell-cafe] Hexpat: Lazy I/O problem with huge input files

2010-10-13 Thread Aleksandar Dimitrov
Hello Haskell Cafe, I really hope this is the right list for this sort of question. I've bugged the folks in #haskell, they say go here, so I'm turning to you. I want to use Hexpat to read in some humongous XML files (linguistic corpora,) since it's the only Haskell XML library (I could find)

Re: [Haskell-cafe] Hexpat: Lazy I/O problem with huge input files

2010-10-13 Thread Daniel Fischer
On Wednesday 13 October 2010 23:06:04, Aleksandar Dimitrov wrote: Hello Haskell Cafe, I really hope this is the right list for this sort of question. I've bugged the folks in #haskell, they say go here, so I'm turning to you. I want to use Hexpat to read in some humongous XML files