Skip to content

Build with GHC 9.10.3-rc1 fails #4678

@andreasabel

Description

@andreasabel

I am trying to follow ghcups helpful hint 3 on how to get HLS for GHC 9.10.3 (RC1: GHC 9.10.2.20250725).

[ Warn  ] GHC-9.10.2.20250725 appears to have no corresponding HLS-2.11.0.0 binary.
[ ...   ] Haskell IDE support may not work.
[ ...   ] You can try to either: 
[ ...   ]   1. Install a different HLS version (e.g. downgrade for older GHCs)
[ ...   ]   2. Install and set one of the following GHCs: [9.12.2, 9.10.2, 9.8.4, 9.6.7, 9.4.8]
[ ...   ]   3. Let GHCup compile HLS for you, e.g. run: ghcup compile hls -g 2.11.0.0 --ghc 9.10.2.20250725 --cabal-update

ghcup compile hls -g 2.11.0.0 --ghc 9.10.2.20250725 --cabal-update fails, and from the cabal.log I can see the reason:

[3 of 8] Compiling Ide.Plugin.SemanticTokens.SemanticConfig ( ... )
plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens/SemanticConfig.hs:19:51: error: [GHC-51433]
    In the import of ‘Ide.Plugin.Properties’:
      a data type called ‘PropertyKey’ is exported,
      but its subordinate item ‘PropertyKey’
      is not in the type namespace.
   |
19 |                                                   PropertyKey (type PropertyKey),
   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens/SemanticConfig.hs:20:51: error: [GHC-51433]
    In the import of ‘Ide.Plugin.Properties’:
      a data type called ‘PropertyType’ is exported,
      but its subordinate item ‘TEnum’ is not in the type namespace.
   |
20 |                                                   PropertyType (type TEnum),
   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^

I tried the same command with GHC 9.10.2 and that succeeded: ghcup compile hls -g 2.11.0.0 --ghc 9.10.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GHCissues with particular GHC versionstype: 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