<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
<BR>
I'm new to GHC and am having a problem compiling a simple test program. I recently installed ghc 6.6.1 on my Windows Vista machine. I can ghci ok. For instance, I defined the factorial function and tested it on a few values. So the interpreter seems to work fine. As a next step I created a file called hello.hs (UTF-8 encoding) containing the single line: main = putStrLn "Hello world!" I opened a windows console, navigated to the folder containing this Haskell file and typed <BR>
'ghc -o hello hello.hs' and received the following error: <EM>hello.hs:1:0 lexical error at character '\65279'</EM>. If I type 'ghc -o hello.exe hello.hs' I get the same error. Anybody know what the problem is here and how to fix it? Thanks.<BR>
<BR>
Regards,<BR>
David<BR>
<BR>
<BR></body>
</html>