2

I am new to Hakell and is getting Following error when i am trying to execute the program.

Parse error in pattern: putStrLn
Possibly caused by a missing 'do'?

import Data.List  
import System.IO  

main=do  
    putStrLn"Enter your name"  
    name<-getLine  
    putStrLn("m, "++name)  
duplode
  • 33,731
  • 7
  • 79
  • 150

0 Answers0