Skip to content

Compilation error when building the executable with GHC 8.8.4 on Windows #9

@f-f

Description

@f-f
with-utf8                  > Configuring with-utf8-1.0.2.1...
with-utf8                  > build
with-utf8                  > Preprocessing library for with-utf8-1.0.2.1..
with-utf8                  > Building library for with-utf8-1.0.2.1..
with-utf8                  > [1 of 6] Compiling Paths_with_utf8
with-utf8                  > [2 of 6] Compiling System.IO.Utf8.Internal
with-utf8                  > [3 of 6] Compiling System.IO.Utf8
with-utf8                  > [4 of 6] Compiling Main.Utf8
with-utf8                  > [5 of 6] Compiling Data.Text.Lazy.IO.Utf8
with-utf8                  > [6 of 6] Compiling Data.Text.IO.Utf8
with-utf8                  > Preprocessing executable 'utf8-troubleshoot' for with-utf8-1.0.2.1..
with-utf8                  > Building executable 'utf8-troubleshoot' for with-utf8-1.0.2.1..
with-utf8                  > [1 of 2] Compiling Main
with-utf8                  > 
with-utf8                  > app\utf8-troubleshoot\Main.hs:23:31: error:
with-utf8                  >     Module `GHC.IO.Encoding.Iconv' does not export `localeEncodingName'
with-utf8                  >    |
with-utf8                  > 23 | import GHC.IO.Encoding.Iconv (localeEncodingName)
with-utf8                  >    |                               ^^^^^^^^^^^^^^^^^^
with-utf8                  > 

Error from here

As you can see from the log above the library compiles fine, but the executable fails to (even though the base version in the build is supposed to contain the module). I cannot find a straightforward way to exclude the executable from the compilation, so I was wondering if it would be worth splitting it out in a separate package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions