Oops, the last example should have been:

    over (chunksOf 3 . individually) (<* yield 0) (each [1..10])

... and now `lens-family-core-1.1` works correctly with the `individually` lens.

On 7/1/14, 9:51 PM, Mark Wotton wrote:
Apologies for what's probably a fairly newbish sort of question: I'm trying to write an efficient pipe for direct-sqlite. While I could run each insert in a separate transaction, this would kill my performance. Thus, I'm trying to find a way of saying "give me everything you have available right now, up to a maximum of N writes".

Nick Partridge pointed me to pipes-group, and chunksOf in particular looks interesting but I'm having some trouble understanding how to use it. Could anyone give me a pointer?

(In this case, it is actually a pipe rather than just a consumer, because I need to notify another part of the system that the write has finished.)

cheers
Mark
--
You received this message because you are subscribed to the Google Groups "Haskell Pipes" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.

--
You received this message because you are subscribed to the Google Groups "Haskell 
Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to