how can help me getting thi开发者_运维问答s main function running, dont know how to do this, i made a small example:
tuple :: String -> (Bool, String)
tuple x = (True, x)
getStr :: String
getStr = "test"
main = do
putStrLn snd (tuple getStr)
putStrLn "End"
You're missing parenthesis around the application of snd
:
main = do
putStrLn (snd (tuple getStr))
putStrLn "End"
精彩评论