2-days old in Haskell

TOPE KAREM topekarem at gmail.com
Fri Jun 1 10:00:51 EDT 2007

I am very new to Haskell, and I am using this webpage as a learning source:

I downloaded and instal GHC and it works as was said.

I tried to write my first Haskell program:

prelude> "Hello World!"
"Hello World, World!"

it works as said.

Then: (This is the problem)

I would like to create a source code and compile it using GHC compiler. I
opened a notepad and type this program:

main = putStrLn "Hello, Word!"

I saved this file as hello.hs in the same directory GHCi 6.6.1 was

When I tried to compile it as instucted on the webpage ( $ ghc  -o hello
hello.hs), I got this error message.

<interactive>: 1:0: parse error on input '$'

please what am I doing wrong.

Thank you and sorry for your time.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20070601/5956b340/attachment.htm

More information about the Glasgow-haskell-users mailing list