joeyadams/haskell-libpq — comment on commit f9ffdf109f5a87f5981dddd13f84adae521c5b1b
File:  line 0
By lpsmith:

Honestly, I'm wondering if this belongs in postgresql-libpq. Maybe it does, maybe it doesn't. I'll have to think about it.

Also, why aren't you using escapeByteaConn function already provided by libpq?