[Haskell-cafe] how to add monad-stack to network-conduit
michael at snoyman.com
Wed Feb 22 12:58:02 CET 2012
On Tue, Feb 21, 2012 at 5:10 PM, Alexander V Vershilov
<alexander.vershilov at gmail.com> wrote:
> I have got next problem: I want to have database connection pool
> in server based on network-conduit.
> So I wanted to be able to do
>> runTCPServer options action
>> action src snk =
>> pool <- ask
> In this situation I can make pool `action's parameter, but in more
> difficult situations (many methods inside) is would be painfull.
> Also I wanted to have some kind of State for each thread, e.g.
>> action src snk = src $= act1 $= act2 $= act3 $$ snk
> in act1, act2, act3 I want to read and change state.
> Is it possible? And how to do it if it is?
> Alexander Vershilov
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
It should just be a matter of relaxing the type signatures in
network-conduit. I'll include that in the next release.
More information about the Haskell-Cafe