Newbie problem: lexical error when compiling

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


Wagner Ferenc <wferi at niif.hu> writes:

> David Schonberger <llp_yyz at hotmail.com> 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 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.
-- 
Feri.


More information about the Glasgow-haskell-users mailing list