<div dir="ltr">Kim-Ee,<div><br></div><div>If I see a function with the signature ":: IO String" I immediately assume it is getLine or one of its ilk. Thus the Op's question doesn't seem odd at all to me. Could you explicate on why you find this very confusing? After all:<div>








<p class="">:Prelude> :t getLine<br>getLine :: IO String</p><p class="">I think you know a lot more about Haskell than I do so I'm curious what the thinking behind your post was.</p><p class=""><br></p><p class="">
Thanks,</p><p class="">Tim</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 10:18 AM, Kim-Ee Yeoh <span dir="ltr"><<a href="mailto:ky3@atamo.com" target="_blank">ky3@atamo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class=""><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 12:49 AM, Nathan Hüsken <span dir="ltr"><<a href="mailto:nathan.huesken@posteo.de" target="_blank">nathan.huesken@posteo.de</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    Mmh, I might not have used haskell terminology correctly. Its a
    function, in the sense of a function of an imperative language ...</blockquote></div><br></div></div><div class="gmail_extra">Yes, you could model IO String in C as a function taking void and returning a pointer to char.<br>


<br></div><div class="gmail_extra">Calling an IO String a Haskell function would confuse a lot of people.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">
<br clear="all"><div>-- Kim-Ee</div>
</div></font></span></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>