[Haskell-cafe] YAWQ (Yet Another Wash Question)

John Goerzen jgoerzen at complete.org
Thu Feb 24 17:12:08 EST 2005


On Thu, Feb 24, 2005 at 09:01:06AM -0800, Jeremy Shaw wrote:
> I am making a wild guess because I do not have all the information in
> front of me right now but would this work ?
> 
> ... do x <- if cond
> >                then textInputField ...
> >                else return ()
> 
> note the addition of 'return' to the else clause ?

Won't help since () is still a different type than textInputField is
working with.

-- John


More information about the Haskell-Cafe mailing list