如何帮助我让这个主要功能运行,不知道该怎么做,我做了一个小例子:
tuple :: String -> (Bool, String)
tuple x = (True, x)
getStr :: String
getStr = "test"
main = do
putStrLn snd (tuple getStr)
putStrLn "End"
答案 0 :(得分:5)
snd
main = do
putStrLn (snd (tuple getStr))
putStrLn "End"