haskell / haskell/haskell-language-server

False positive: Main.hs (executable) does not recognise function defined in Lib.hs (library)

Open
#1,822 30 comments 0 reactions 0 assignees View on GitHub
build tool: stack can-workaround component: hie-bios status: blocked type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

Hello, I am having trouble with erroneous error messages from the linter.

The steps I have taken are:
1. Created a new Haskell Stack project with `stack new `
2. Used `stack setup`
3. Created a function in Lib.hs and then used that function in Main.hs

Below are screenshots of the error I see.

![image](https://user-images.githubusercontent.com/9961083/117804358-9791b000-b24f-11eb-9704-b77b10a83863.png)
![image](https://user-images.githubusercontent.com/9961083/117804387-9fe9eb00-b24f-11eb-9ce4-697e452046a4.png)

Whenever I use `stack run`, the program compiles and runs as expected.

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.