Stupid wuestion about Monads :)

Hal Daume III hdaume@ISI.EDU
Wed, 11 Jun 2003 11:03:48 -0700 (PDT)


Look through the mailing list archives/wiki/haskell tutorials.  But
basically you can't, except by combining it with another action, as in:

suppose 'baz :: Int -> IO Bool', then:

foo = do
  bar <- baz 5
  if bar
    then ...
    else ...

for instance...

--
 Hal Daume III                                   | hdaume@isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume

On Wed, 11 Jun 2003, Filip wrote:

> I have a question :)
> What should I do if I have something like "IO Bool" and I need "Bool" ??
> And the same with other IO +something.
> 
> Thank You :)
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>