Skip to content

HLS fails to find modules with .hs-boot files in the root project directory #3794

Closed
@moll

Description

@moll

Hey,

This is a continuation of a discussion we had with @fendor on IRC in #haskell-language-server.

Long story short, HLS seems to fail to find two self-recursive modules with .hs-boot files if they happen to live in the project root and you have a minimal hie.yaml. That is hs-source-dirs: .. This with GHC v9.2.8, HLS v2.2.0.0.

Here's the gist/Gist reproducing this and the error message it results in: https://gist.github.com/moll/591c08e1c6fa75b237214c298e3a97e5. There's also what gen-hie generates and what hie.yaml looked like.

I also confirmed that moving the X and Y modules to subdirectory (like Lib), while leaving hs-source-dirs: ., works.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: 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