
24 Aug
2003
24 Aug
'03
8:12 a.m.
In article
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