main = myFunction myFunction = do c <- getChar if (c == 'q') then putStrLn "take action 1" else putStrLn "take action 2"
Z
take action 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!