<div class="gmail_quote">On 14 March 2012 15:08, Ozgur Akgun <span dir="ltr">&lt;<a href="mailto:ozgurakgun@gmail.com">ozgurakgun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><div class="gmail_quote">On 14 March 2012 13:51, Volker Wysk <span dir="ltr">&lt;<a href="mailto:pf3@volker-wysk.de" target="_blank">pf3@volker-wysk.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">import System</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">main = do</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">   [a] &lt;- getArgs</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">   putStrLn (show a)</p></blockquote></div><br></div>a here is already of type String. If you don&#39;t call show on it, it&#39;ll do the expected thing.</blockquote>

<div><br>He means that the UTF-8 encoded string passed to the program should be decoded into unicode points into Chars. So putStrLn (length a) should be 1 were it decoded, but it&#39;s actually 2. You can&#39;t use this string properly, there is no Char containing the ä.  See?<br>

</div></div>