<div>Thanks to all ( Stefan, Ketil and Brown). It works both on Linux and Windows.</div>
<div>&nbsp;</div>
<div>Tope</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/2/07, <b class="gmail_sendername">Stefan O&#39;Rear</b> &lt;<a href="mailto:stefanor@cox.net">stefanor@cox.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Fri, Jun 01, 2007 at 04:00:51PM +0200, TOPE KAREM wrote:<br>&gt; I am very new to Haskell, and I am using this webpage as a learning source:
<br>&gt; <a href="http://www.haskell.org/haskellwiki/Haskell_in_5_steps#Install_Haskell">http://www.haskell.org/haskellwiki/Haskell_in_5_steps#Install_Haskell</a><br>&gt;<br>&gt; I downloaded and instal GHC and it works as was said.
<br>&gt;<br>&gt; I tried to write my first Haskell program:<br>&gt;<br>&gt; prelude&gt; &quot;Hello World!&quot;<br>&gt; &quot;Hello World, World!&quot;<br>&gt;<br>&gt; it works as said.<br>&gt;<br>&gt; Then: (This is the problem)
<br>&gt;<br>&gt; I would like to create a source code and compile it using GHC compiler. I<br>&gt; opened a notepad and type this program:<br>&gt;<br>&gt; main = putStrLn &quot;Hello, Word!&quot;<br>&gt;<br>&gt; I saved this file as 
hello.hs in the same directory GHCi 6.6.1 was<br>&gt; installed.<br>&gt;<br>&gt; When I tried to compile it as instucted on the webpage ( $ ghc&nbsp;&nbsp;-o hello<br>&gt; hello.hs), I got this error message.<br>&gt;<br>&gt; &lt;interactive&gt;: 1:0: parse error on input &#39;$&#39;
<br>&gt;<br>&gt; please what am I doing wrong.<br>&gt;<br>&gt; Thank you and sorry for your time.<br><br>Three things:<br><br>1. The $ is just a sample prompt, a convention used to indicate what<br>&nbsp;&nbsp;you should typed.<br>
<br>2. The command is for a shell (CMD or COMMAND), not GHCi.<br><br>3. The command is wrong!&nbsp;&nbsp;for Windows it should be &quot;ghc -o hello.exe<br>&nbsp;&nbsp;hello.hs&quot;.&nbsp;&nbsp;Assuming you aren&#39;t knowledgable yet on the differences
<br>&nbsp;&nbsp;between Windows and Unix programming environments, it might be a good<br>&nbsp;&nbsp;idea to pick another tutorial.<br><br>Stefan<br></blockquote></div><br>