
-----------------------------------
DtY
Fri Apr 24, 2009 2:21 pm

Haskell telling me code isn't indented properly
-----------------------------------
module Main where
import System.Environment

main :: IO ()
main = do
    putStrLn "What is your name? "
    name  is coming from, the syntax highlighter seems to have put it in, If you press the quote button, it's not there in the post. Odd.

Anyway, I tried adding an else, and am still getting the same error.

module Main where
import System.Environment

main :: IO ()
main = do
    putStrLn "What is your name? "
    name 