module Main
alicebob :: String -> String
alicebob "alice" = "Hi alice"
alicebob "bob" = "Hi bob"
alicebob _ = "Hi person whose name is neither alice nor bob."
greet :: IO ()
greet = do
putStrLn "hi. whats your name?"
name <- getLine
putStrLn (alicebob name)
简单的编程练习,以获得一些用户输入和回复。刚开始学习haskell,所以请原谅这个简单的问题。在线获取错误alicebob ::
String -> String
。我该如何解决?