IO Bool -> Bool
Thu, 14 Aug 2003 18:02:21 +0200
On Thursday, 2003-08-14, 17:05, CEST, Kevin S. Millikin wrote:
> On Wednesday, August 13, 2003 11:20 PM, Tn X-10n
> [SMTP:firstname.lastname@example.org] 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
I wouldn't call these *conversion* functions because they don't look at their
> Maybe that's not what you had in mind.