Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation fails with ghc-9.12 (because of custom setup) #47

Open
jwaldmann opened this issue Jan 9, 2025 · 0 comments
Open

compilation fails with ghc-9.12 (because of custom setup) #47

jwaldmann opened this issue Jan 9, 2025 · 0 comments

Comments

@jwaldmann
Copy link

jwaldmann commented Jan 9, 2025

custom setup code needs to be adapted for Cabal-3.14, as they introduced an abstract path type:

$ cabal build -w /opt/ghc/ghc-9.12.1/bin/ghc
...
Build profile: -w ghc-9.12.1 -O1
In order, the following will be built (use -v for more details):
 - mysql-0.2.1 (lib:mysql) (first run)
[1 of 2] Compiling Main             ( dist-newstyle/build/x86_64-linux/ghc-9.12.1/mysql-0.2.1/setup/setup.hs, dist-newstyle/build/x86_64-linux/ghc-9.12.1/mysql-0.2.1/setup/Main.o )
dist-newstyle/build/x86_64-linux/ghc-9.12.1/mysql-0.2.1/setup/setup.hs:82:25: error: [GHC-83865]
    • Couldn't match type: [Char]
                     with: Distribution.Utils.Path.SymbolicPathX
                             Distribution.Utils.Path.AllowAbsolute
                             Distribution.Utils.Path.Pkg

Perhaps it is enough to add the constraint in the cabal file

custom-setup
  setup-depends: base, Cabal<3.14
jwaldmann added a commit to jwaldmann/mysql that referenced this issue Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant