select x p q
  | True = p
  | False = q

main = putStr (select (1 == 1) "yes" "no")

comments

golfed:

select _ p _ = p