j
k
j a
j l
Hi, On 14 March 2012 13:51, Volker Wysk wrote:
import System main = do [a] <- getArgs putStrLn (show a)
import System
main = do
[a] <- getArgs
putStrLn (show a)
a here is already of type String. If you don't call show on it, it'll do the expected thing. Try: main = do [a] <- getArgs putStrLn a HTH, Ozgur
Attachments:
Back to the thread
Back to the list