
12 Dec
2009
12 Dec
'09
12:17 a.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