IO Bool -> Bool

Kevin S. Millikin kmillikin@atcorp.com" <kmillikin@atcorp.com
Thu, 14 Aug 2003 10:05:23 -0500


On Wednesday, August 13, 2003 11:20 PM, Tn X-10n 
[SMTP:kawairashii@hotmail.com] wrote:
>  is it possible to convert IO Bool to Bool?

Sure.  Which Bool do you want?  True?

> toTrue :: IO Bool -> Bool
> toTrue x = True

Or False?

> toFalse :: IO Bool -> Bool
> toFalse x = False

Maybe that's not what you had in mind.