http://deni-ok.livejournal.com/ ([identity profile] deni-ok.livejournal.com) wrote in [personal profile] deniok 2012-02-20 07:54 pm (UTC)

Хм?
Prelude> let iif b x y = b x y
Prelude> let problem b = (iif b 'x' 'y', iif b "Ann" "Bob")

< interactive >:1:39:
    Couldn't match expected type `Char' with actual type `[Char]'
    In the second argument of `iif', namely `"Ann"'
    In the expression: iif b "Ann" "Bob"
    In the expression: (iif b 'x' 'y', iif b "Ann" "Bob")

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting