https://github.com/maoe/influxdb-haskell/blob/4b84a55bc71a19a97ce339613c27249fc1aa2b0f/src/Database/InfluxDB/Query.hs#L475-L476 add a MonadIO m constraint and have the FoldM use this m rather than IO, and have the function return m r. Background: I want to use this function to create a conduit source... thus in my case m would be something like ConduitT () a IO