How can I count the frequency of characters in a string and then output them in sort of a table?
For example, if I input the word \"happy\" the result would be
func xs = map (\a -> (head a, length a)) $ group $ sort xs