when i try to compile listing below
import System.Environment(getArgs)
import System.Exit
import Control.Monad(when)
main = do
args <- getArgs
when (length args /= 2) $ do
putStrLn "Syntax: passwd-al filename uid"
existFailure
the compiler complaints : The function 'putStrLn' is applied to two arguments. but obviously it takes only one String and existFailure is just another IO action from System.Exit.
how to fix this?