Skip to content

HLS not properly working when configuring XMonad #3553

@reyniersbram

Description

@reyniersbram

Your environment

Which OS do you use?

  • ArchLinux inside a virtual machine.

Which version of GHC do you use and how did you install it?

  • 9.2.7 from stack

Which LSP client (editor/plugin) do you use?

  • Neovim

Which version of HLS do you use and how did you install it?

  • 1.10.0.0 from ghcup

Have you configured HLS in any way (especially: a hie.yaml file)?

  • generated hie.yaml with gen-hie:
cradle:
    stack:
        - path: "xmonad/src"
          component: "xmonad:lib"

        - path: "xmonad/./Main.hs"
          component: "xmonad:exe:xmonad

        - path: "xmonad/tests"
          component: "xmonad:test:properties"

        - path: "xmonad-contrib/./"
          component: "xmonad-contrib:lib"

        - path: "xmonad-contrib/tests"
          component: "xmonad-contrib:test:tests"

        - path: "xmonad-contrib/."
          component: "xmonad-contrib:test:tests"

What's wrong?

I just started to try and use XMonad, but when editing xmonad.hs I get the following error:
image
I tried both with and without the generated hie.yaml file, without any difference. I tried to do some manual editing of this file as well, but since I didn't really have any idea what I was doing this didn't help either.

I did work on other Haskell projects before with the same neovim setup, but never came across this error.

This is my directory-structure, if this provides some extra usefull information:
image
The xmonad and xmonad-contrib directories are just the git repos.

Thanks in advance for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions