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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -