haskell / haskell/haskell-language-server

Importing a hsc file results in error

Open
#4,407 1 comment 1 reaction 0 assignees View on GitHub
component: ghcide status: needs info type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

## Your environment

Which OS do you use?

Which version of GHC do you use and how did you install it?
Linux lenovotp-20n3s7bc02 5.15.165-1-MANJARO

How is your project built (alternative: link to the project)?
ghc: 9.4.8
cabal: 3.10.3.0

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

emacs+lsp-mode
Which version of HLS do you use and how did you install it?

Have you configured HLS in any way (especially: a `hie.yaml` file)?
2.9.01 from ghcup
## What's wrong?

If I create a .hsc file and import it from a another .hs file, then it doesnt find it. Is like is not compiling the hsc file. I have checked that cabal compiles it, so I think is a hls problem.

### Debug information

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.