Gabriella439 / Haskell-MVC-Library

Model-view-controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `ManagedT`

YoEight opened this issue · 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

commented

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

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