Newbie problem: lexical error when compiling

Wagner Ferenc wferi at
Sun Sep 16 16:29:07 EDT 2007

Wagner Ferenc <wferi at> writes:

> David Schonberger <llp_yyz at> writes:
>> 'ghc -o hello hello.hs' and received the following error: hello.hs:1:0 lexical
>> error at character '\65279'.
> See
> Somehow you'll have to persuade you editor not to use the BOM, or make
> GHC accept it...  Neither of which I can help you.

Or one thing, after all: since your source is pure ASCII, don't save
is as UTF-8.  7-bit ASCII and UTF-8 are compatible.

More information about the Glasgow-haskell-users mailing list