Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot build HLS with cabal-add 0.2 #4637

Closed
Labels
HackageAnything to do with Hackage distributions of HLS type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..
@lyokha

Description

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 HLS type: 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

        AltStyle によって変換されたページ (->オリジナル) /