[Haskell-beginners] Cross-platform .hs files on Linux and Windows

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Apr 18 00:31:20 CEST 2012

On Tue, 17 Apr 2012 22:56:23 +0200, Vinay Sajip <vinay_sajip at yahoo.co.uk>  

> Actually, I face-palmed when I found what the problem was. On the 64-bit
> machine, because I was short of disk space, I hadn't installed a proper  
> editor,
> and used Notepad. Of course, Notepad sticks a UTF-8 BOM at the start of  
> the file
> ... removing that sorted out the problem :-)

But GHC should use/ignore a BOM!

Henk-Jan van Tuyl

Haskell programming

More information about the Beginners mailing list