Oleg Korban
Oleg Korban

Reputation: 269

UTF-8 decoding error, haskell

I'm trying to compile my first haskell program. Have created a simple text file as input for my .hs. But get an error: lexical error (UTF-8 decoding error). I have seen there is a workaround for windows - set LANG=C. I'm on mac and next exports doesn't work for me:

export LANG=C
export LANG=en_US.UTF-8

Any suggestions? Thanks

Upvotes: 2

Views: 1906

Answers (1)

Oleg Korban
Oleg Korban

Reputation: 269

Saved my program in UTF-8. Thanks Reid, Will

Upvotes: 2

Related Questions