Haskell – SPOJ – Code 'TEST' -


i trying solve first spoj-problem in haskell, end having parse error on input if. common problem?

main = input <- getline       if input == "42" putstr ""        else putstrln input               main 

i once had same problem solving spoj problems. editor mixes tabs , spaces. try use spaces , work fine.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -