Skip to content

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

Description

@jwaldmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions