concept most frequent word in category haskell
appears as: most frequent words

This is an excerpt from Manning's book Haskell in Depth.
Remember that our task is to explore the vocabulary of a given text file, but let’s be more specific here: from now on we regard a vocabulary as consisting of entries with words and numbers of occurrences. These entries can be used later for determining the most frequent words, for example. Now that we’ve agreed on the types of an entry (a word and the number of its occurrences) and a vocabulary (a list of entries), we are ready to write a type-based outline for the program: