jepst/CloudHaskell — pull request #8 by basvandijk (2011-10-27 22:00:47+00:00)
Title: Add instance MonadControlIO ProcessM

Hi Jeff,

This patch adds an instance for [MonadControlIO](http://hackage.haskell.org/packages/archive/monad-control/latest/doc/html/Control-Monad-IO-Control.html#t:MonadControlIO) for `ProcessM`

This enables users to lift 'control' operators into a process. Control operators are things like: `alloca`, `mask`, `catch`, `forkIO`, etc.

When you have this ability you can probably remove all your custom control operators: `ptry`, `ptimeout`, `pbracket` and `pfinally`. They can be replaced by simple one-liners in terms of functions from `monad-control`. (I may even make an additional patch for this if you want)

Regards,

Bas