Skip to content

Program error: Failed to load interface for ‘Main’ no unit id matching ‘main’ was found #204

Closed
@d-xo

Description

@d-xo

I have this error in the main executable file in a two projects (hevm, and act).

In both of these projects haskell-language-server works very well (type checking / doc lookup / jump to definition) in all files except the main executable (Main.hs in act and hevm-cli.hs in hevm).

cabal new-build works without errors in both projects.

I am using a globally installed version of hakell-language-server built against ghc8.6.5 using the nix deritvations here.

The full output from running haskell-language-server from the root of the act repo is here.

If you want to reproduce the issue locally, it's probably easiest to use the act project. The shell.nix in the repo root can be used to prepare a working build environment, but does not currently include an installation of haskell-language-server itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    os: nixostype: 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