Skip to content

Module and Import Colors Seem Different (Might be LSP related) #1884

@IQubic

Description

@IQubic

So, in the photo below, I'm using the Catppuccin colour scheme. It used to be that only the words module, where, and import were purple, with the rest being white, but now the entire first few lines are purple.

Using M-x describe face I can tell that Day01, Common.Runner, Common.Parser, and Common.Util are all being rendered with the haskell-constructor-face which seems wrong, because these are module names and not constructors.

This might be an LSP issue, where the output of the LSP has changed (maybe it's outputting different different classifiers or something), I'm not sure. I'm currently using haskell-language-server version: 2.12.0.0 (GHC: 9.10.3) and my GHC version is the same. I'm also use LSP-Mode for Emacs: https://emacs-lsp.github.io/lsp-mode/

Here's the relevant directory structure:
https://gist.github.com/IQubic/ae3f1e0c3062ffd0a65035771dffdc90

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions