title: How can I use getLine or getChar in haskell?
body: <p>I'm trying to get from my console a <code>string</code> or just a <code>char</code> and store into a variable.</p>
  
  <p>I tried to use:</p>
  
  <pre><code>&gt; let x = getChar
  &gt; x
  &gt; c -- for getting a char.
  </code></pre>
  
  <p>But nothing is stored (same for getLine) how can I do?</p>