
1 May
2010
1 May
'10
5:37 p.m.
Hello! I have some sort of strange question: assume that there are 2 functions func1 :: Int -> IO (Either Error String) func2 :: String -> IO (Either Error [String]) in case if there will be no IO involved, I could use Control.Monad.Either and write something like runCalc :: Int -> IO (Either Error [String]) runCalc param = func1 param >>= func2 but with that IO stuff I can't simply do in this way. Can somebody please suggest, how to combine IO and Either monads, if that's even possible? Thank you in advance! -- Eugene Dzhurinsky