Skip to content

Cannot build HLS with cabal-add 0.2 #4637

Closed
@lyokha

Description

@lyokha

Your environment

ghc 9.12.2, Fedora 42

did cabal update recently

Steps to reproduce

cabal install haskell-language-server --disable-documentation --overwrite-policy=always

Expected behaviour

HLS gets built

Actual behaviour

[16 of 19] Compiling Ide.Plugin.Cabal.CabalAdd ( plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs, dist/build/hls-cabal-plugin/Ide/Plugin/Cabal/CabalAdd.o, dist/build/hls-cabal-plugin/Ide/Plugin/Cabal/CabalAdd.dyn_o )
plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs:283:55: error: [GHC-76037]
    Not in scope: data constructor ‘Config’
    Suggested fix:
      Add ‘Config’ to the import list in the import of ‘Ide.Types’
      (at plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs:(61,1)-(65,82)).
    |
283 |   case executeConfig (validateChanges origPackDescr) (Config {..}) of
    |                                                       ^^^^^^

The reason for this is that in cabal-add 0.2 there were renamings: executeConfig -> executeAddConfig and Config -> AddConfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    HackageAnything to do with Hackage distributions of HLStype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions