serokell / haskell-with-utf8

Get your IO right on the first try
https://serokell.io/blog/haskell-with-utf8
52 stars 3 forks source link

[#9] Fix compilation of executable on Windows #11

Closed heitor-lassarote closed 3 years ago

heitor-lassarote commented 3 years ago

Problem: Compilation of the executable on Windows fails with 'Module GHC.IO.Encoding.Iconv' does not export localeEncodingName'`

Solution: Check if we are on Windows, and don't import such module or use localeEncodingName if it's the case.