Skip to content

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

Open
@mgpwilson

Description

@mgpwilson

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 <project-name>
  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
image

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

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