[Haskell-beginners] Re: if True than let...

Gracjan Polak gracjanpolak at gmail.com
Thu Jun 25 16:24:30 EDT 2009


Andrew Wagner <wagner.andrew <at> gmail.com> writes:
> Try this: let b = if a == True then "+" else "-" in ...

Or like this:

main = do
    let b = if True then "a" else "b"
    putStrLn b

-- 
Gracjan




More information about the Beginners mailing list