I am new in Haskell and during writing a small code in haskell, I faced an error named
Last generator in do {...} must be an expression
I tried hard to remove this error but failed.
I visit the stack overflow for this error and I found but the answer was given too much large and complex so I can't understand.
It is the link where I found about this error
My code is
main = do
putStrLn "What is your name?"
name <- getLine
putStrLn ("Name of customer is "++ name)
Anybody can help me so this error can be resolved and your help must be appreciated