[Haskell-cafe] Re: garbage collector woes

Don Stewart dons at galois.com
Thu Feb 19 18:41:40 EST 2009

> On Feb 17, 2009, at 12:22 PM, Chris Waterson wrote:
>> I'm at wits end with respect to GHC's garbage collector and would very
>> much appreciate a code review of my MySQL driver for HDBC, which is
>> here:
>> <http://www.maubi.net/~waterson/REPO/HDBC-mysql/Database/HDBC/MySQL/Connection.hsc 
>> >
>> In particular, the problem that I'm having is that my "statements"
>> (really, just iterators over a SQL query result set) are getting
>> garbage collected prematurely.
> So (*blush*), my woes turned out to be my misunderstanding of the MySQL C 
> API, which
> I have now come to terms with.  I apologize for the noise here.

Is the solution written up somewhere so we can point to that next time?

More information about the Haskell-Cafe mailing list