I am a newbie in Haskell and have some problem of defining a function that would convert all small letters to capital and leave the rest intact.
I tried solving this question in my book so far:
capitalise :: String -> String
capitalise xs = [capitalise2 ch| ch<-xs]
capitalise2 :: Char -> Char
capitalise2 ch
| isLower ch = chr (ord ch - 32)
| otherwise = ch
I am getting errors:
p3.hs:6:7: Not in scope: `isLower'
p3.hs:6:23: Not in scope: `chr'
p3.hs:6:28: Not in scope: `ord'
Any help would be much appreciated.