
11 Dec
2009
11 Dec
'09
7:17 p.m.
Hi, Is it possible to create an instance of Monad for IOException? Each time a try I stay blocked by IO monad. with the definition: data IOException a = IOExceptionCons (IO (Exception a)) data Exception a = SuccessCons (Maybe Warning) a | ErrorCons Error data Warning = WarningCons1 | WarningCons2 data Error = ErrorCons1 | ErrorCons2 Regards