I'd like to switch to using Pool from resource-pool [1] package in my
snaplet [2] to handle database connection pool. This requires my
Handlers to have MonadBaseControl IO instance, whereas Snap provides
MonadCatchIO. Seems like using resource-pool-catchio fork [3] could do
the trick, but is there any chance to see MonadBaseControl support in
Snap?
[1]: http://hackage.haskell.org/package/resource-pool
[2]: https://github.com/dzhus/snap-redis-crud/blob/master/src/RedisDB.hs
[3]: http://hackage.haskell.org/package/resource-pool-catchio
#if MIN_VERSION_monad_control(0,3,0)
#else
instance MonadControlIO (Handler b v) where
liftControlIO f = liftBase (f return)
#endif
Jurriën