When trying to define the function
maximum' :: (Ord a) => [a] -> a
maximum' = foldrl (\x acc -> if x > acc then x else acc)
ghci reports the error:
Not in scope: `foldrl'
Failed, modules loaded: none.
Ubuntu 10.04
$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1
Why isn’t the function foldrl in scope?
Ohhh, you want
foldr1notfoldrl, the last character is a1, not anl