Couldn't match type ‘Either String’ with ‘[]’

前端 未结 0 1511
一个人的身影
一个人的身影 2020-12-22 11:01

I have this main method:

main :: IO ()
main = do 
     x <- getArgs
     case x of
         [] -> putStrLn "Empty"
         [x] ->  putStrL         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题