2008/1/18 Sukit Tretriluxana <<a href="mailto:tretriluxana.s@gmail.com">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."'<br></div><div><br><br></div></div>