Thanks all. This really helps me a lot!<br><br><div class="gmail_quote">On Jan 18, 2008 6:24 PM, Jonathan Cast &lt;<a href="mailto:jonathanccast@fastmail.fm">jonathanccast@fastmail.fm</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div><div></div><div class="Wj3C7c"><div><div>On 18 Jan 2008, at 2:00 PM, Clifford Beshers wrote:</div><br><blockquote type="cite">2008/1/18 Sukit Tretriluxana &lt;<a href="mailto:tretriluxana.s@gmail.com" target="_blank">
tretriluxana.s@gmail.com</a>&gt;:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br><br>I don&#39;t know if it&#39;s been asked before. I just wonder if GHC supports some sort of one-liner program that can be specify right as the argument to either ghci or runghc program. In perl, they have something like 
<br><br>perl <b>-e</b> &#39;print &quot;Hello&quot;&#39;<br><br>Do we have similar thing with GHC?</blockquote><div><br><br>&nbsp;ghc -e &#39;putStrLn &quot;Yes, we do.&quot;&#39;</div></div></blockquote><br></div></div></div>
<div>Although, unlike perl, you don&#39;t have to say print explicitly if you don&#39;t need it:</div><div><br></div><div>ghc -e &#39;&quot;This works great!&quot;&#39;</div><div><br></div><div>jcc</div><div><br></div><br>
</div></blockquote></div><br>