<div>Thanks to all ( Stefan, Ketil and Brown). It works both on Linux and Windows.</div>
<div> </div>
<div>Tope</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 6/2/07, <b class="gmail_sendername">Stefan O'Rear</b> <<a href="mailto:stefanor@cox.net">stefanor@cox.net</a>> 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>> I am very new to Haskell, and I am using this webpage as a learning source:
<br>> <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>><br>> I downloaded and instal GHC and it works as was said.
<br>><br>> I tried to write my first Haskell program:<br>><br>> prelude> "Hello World!"<br>> "Hello World, World!"<br>><br>> it works as said.<br>><br>> Then: (This is the problem)
<br>><br>> I would like to create a source code and compile it using GHC compiler. I<br>> opened a notepad and type this program:<br>><br>> main = putStrLn "Hello, Word!"<br>><br>> I saved this file as
hello.hs in the same directory GHCi 6.6.1 was<br>> installed.<br>><br>> When I tried to compile it as instucted on the webpage ( $ ghc -o hello<br>> hello.hs), I got this error message.<br>><br>> <interactive>: 1:0: parse error on input '$'
<br>><br>> please what am I doing wrong.<br>><br>> 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> you should typed.<br>
<br>2. The command is for a shell (CMD or COMMAND), not GHCi.<br><br>3. The command is wrong! for Windows it should be "ghc -o hello.exe<br> hello.hs". Assuming you aren't knowledgable yet on the differences
<br> between Windows and Unix programming environments, it might be a good<br> idea to pick another tutorial.<br><br>Stefan<br></blockquote></div><br>