Newbie problem: lexical error when compiling

2007-09-16 Thread David Schonberger
Hi, 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

Re: Newbie problem: lexical error when compiling

2007-09-16 Thread Wagner Ferenc
Wagner Ferenc [EMAIL PROTECTED] writes: David Schonberger [EMAIL PROTECTED] writes: 'ghc -o hello hello.hs' and received the following error: hello.hs:1:0 lexical error at character '\65279'. See http://en.wikipedia.org/wiki/Byte_Order_Mark Somehow you'll have to persuade you editor not

Another compilation problem

2007-09-16 Thread David Schonberger
Another newbie question. To recap, running 6.6.1 on Vista. Fixed the other problem--lexical error, apparently a BOM added by Notepad--by getting Xemacs. Now when I type 'ghc -o hello hello.hs' at the prompt I get gcc: installation problem, cannot exec 'as': no such file ro directory. Any idea