title: How to get the ASCII value of a character in Haskell?
body: <p>How to get the ASCII value of a character in Haskell? I've tried to use the <code>ord</code> function in GHCi, based on what I read <a href="http://haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Data-Char.html#6" rel="noreferrer">here</a> bug the the error message:</p>
  
  <blockquote>
    <p>Not in scope: `ord'</p>
  </blockquote>
  
  <p>For example:</p>
  
  <pre class="lang-none prettyprint-override"><code>GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
  Loading package ghc-prim ... linking ... done.
  Loading package integer-gmp ... linking ... done.
  Loading package base ... linking ... done.
  Loading package ffi-1.0 ... linking ... done.
  Prelude&gt; ord 'a'
  
  &lt;interactive&gt;:1:0: Not in scope: `ord'
  Prelude&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>