title: How to find the frequency of characters in a string in Haskell?
body: <p>How can I count the frequency of characters in a string and then output them in sort of a table?</p>
  
  <p>For example, if I input the word "happy" the result would be  </p>
  
  <pre><code>h 1  
  a 1  
  p 2  
  y 1  
  </code></pre>
  
  <p>If this could be ordered in ASCII order too that would be brilliant.</p>
  
  <p>I know I need to use the count function, any other hints would be appreciated.  </p>
  
  <p><strong>EDIT:</strong> All the answers are brilliant, only I'm such a beginner at Haskell that I don't actually understand what they are doing.</p>