Thanks. This does the job : import Data.Char x = map isLower "ABCde":[] -- Note that comments are preceded by two hyphens {- or enclosed in curly brace/hypens pairs. -} main = print x