It may be a dumb question but I got an error when I try to get an input outside of the main
function:
menu2Players :: String -> String -> (String, String)
menu2Players player1 player2 = do
putStrLn("Qual o nome do primeiro jogador?\n")
player1 <- getLine
putStrLn("Qual o nome do segundo jogador?\n")
player2 <- getLine
return (player1, player2)
The error I got
The IO action ‘main’ is not defined in module ‘Main’
What can I do to fix this?