Haskell-MVC-Library icon indicating copy to clipboard operation
Haskell-MVC-Library copied to clipboard

Add `ManagedT`

Open YoEight opened this issue 11 years ago • 2 comments

Could allow an alternative definition of runMVC like this

runMVCT :: MonadIO m => s -> Model s a b -> Managed (ViewT m b, Controller a) -> m s

ViewT could be nice to have too

YoEight avatar Sep 17 '14 19:09 YoEight

That would also be useful for running with Pipes.Safe's SafeT I think.

teh avatar Mar 26 '15 19:03 teh

So this is explicitly designed to not require SafeT. The idea is that now you use Managed to deal with resource acquisition and release.

Gabriella439 avatar Apr 11 '15 19:04 Gabriella439