The recipe reads the file line by line. Each line is split into words using the function words. Since we are interested in only the host or its IP, we will take only the first word. Each host name / IP is considered as a tuple (hostname, 1), where 1 denotes that each entry corresponds to single access. We used the insertWith function to insert the preceding entry. If the entry already exists in the map, then we would use combining function to add 1 to the existing access count. We got hosts in the ascending order using the function toAscList. We used Control.Monad.forM_ to iterate over the list of accesses and print them to the console.