我正在使用VSCode作为我在Mac上的Haskell的IDE。
这个简单的函数
toLowerSt :: String -> String
toLowerSt = map toLower返回以下错误:
Main.hs:92:17: error:
• Variable not in scope: toLower :: Char -> Char
• Perhaps you meant ‘toLowerSt’ (line 92)
|
92 | toLowerSt = map toLower
| ^^^^^^^
Failed, no modules loaded.我很难理解这里的实际问题是什么。一个字符串被映射到字符中,但是它给我抛出了这个错误。
https://stackoverflow.com/questions/73102689
复制相似问题