In article <[EMAIL PROTECTED]>, "Tn X-10n" <[EMAIL PROTECTED]> wrote:
> is it possible to convert IO Bool to Bool? Not directly in Haskell, but you can use the "<-" syntax to do something vaguely similar inside a "do" block. For instance: foo :: IO Bool do result <- foo if result then putStrLn "yes" else return () Here "result" has type Bool. "do" blocks are magic conjured from sugar and syntax. -- Ashley Yakeley, Seattle WA _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe