Hi Tom, I now wrote a version which doesn't use a separate thread to push all the rows through an MVar. It's using the new cursor interface that I added to opaleye:
https://github.com/basvandijk/pipes-opaleye/blob/master/src/Pipes/Opaleye/RunQuery.hs Bas On 30 July 2017 at 18:42, Tom Ellis < tom-lists-haskell-pipes-2...@jaguarpaw.co.uk> wrote: > On Sat, Jul 29, 2017 at 11:54:33PM +0200, Bas van Dijk wrote: > > I just started playing with pipes and I really like it so far. For my > first > > project I would like to create a Producer for opaleye query results. I > came > > up with the following: > > > > https://github.com/basvandijk/pipes-opaleye/blob/master/src/ > Pipes/Opaleye/RunQuery.hs > > > > Is that the correct way of doing it? What can be improved? > > I'm curious about all the MVar business. Is this a typical thing to do in > the pipes world? I thought there would be a more pure approach. > > -- > 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 haskell-pipes+unsubscr...@googlegroups.com. > To post to this group, send email to haskell-pipes@googlegroups.com. > -- 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 haskell-pipes+unsubscr...@googlegroups.com. To post to this group, send email to haskell-pipes@googlegroups.com.