wen*_*ong 3 haskell scope module
在尝试定义函数时
maximum' :: (Ord a) => [a] -> a
maximum' = foldrl (\x acc -> if x > acc then x else acc)
Run Code Online (Sandbox Code Playgroud)
ghci报告错误:
Not in scope: `foldrl'
Failed, modules loaded: none.
Ubuntu 10.04
$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1
Run Code Online (Sandbox Code Playgroud)
为什么功能不在foldrl范围内?