Closed
Description
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