title: How to use GHCi :set args on quoted strings that include functions
body: <p>I was trying to use GHCi and <code>:set args</code> for <code>main</code>, as follows:</p>
  
  <pre><code>:set args "(\x -&gt; x )"
  </code></pre>
  
  <p>GHCi complains:</p>
  
  <pre><code>Couldn't read "\"(\\x -&gt; x )\""as String
  </code></pre>
  
  <p>I don't understand why this can't be treated as a string.
  I could do without the quotes:</p>
  
  <pre><code>:set args (\x -&gt; x )
  </code></pre>
  
  <p>But apparently, this is incorrect and it would be interpreted as 4 parameters instead of one, as shown by the following <code>main</code> function.</p>
  
  <pre><code>import System.Environment
  
  main = do
    args &lt;- getArgs
    putStrLn $ show $ length args
  </code></pre>
  
  <p>Any pointers on how to pass this into GHCi?
  (I could pass it to compiled ghc code from the command line.)</p>
  
  <p>Thanks,</p>