Thanks all. This really helps me a lot!<br><br><div class="gmail_quote">On Jan 18, 2008 6:24 PM, Jonathan Cast <<a href="mailto:jonathanccast@fastmail.fm">jonathanccast@fastmail.fm</a>> 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 <<a href="mailto:tretriluxana.s@gmail.com" target="_blank">
tretriluxana.s@gmail.com</a>>:<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't know if it'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> 'print "Hello"'<br><br>Do we have similar thing with GHC?</blockquote><div><br><br> ghc -e 'putStrLn "Yes, we do."'</div></div></blockquote><br></div></div></div>
<div>Although, unlike perl, you don't have to say print explicitly if you don't need it:</div><div><br></div><div>ghc -e '"This works great!"'</div><div><br></div><div>jcc</div><div><br></div><br>
</div></blockquote></div><br>