haskell / haskell/haskell-language-server

CodeLens tries to rename module name to match the filename when the file is listed in the "main-is" section of the cabal file

Open
#659 8 comments 1 reaction 0 assignees View on GitHub
component: hls-module-name-plugin level: easy type: bug type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

![image](https://user-images.githubusercontent.com/53291983/101616044-d249af00-3a49-11eb-8497-62d0ed787062.png)
The module name of the file that "main-is" is pointing to [should](https://cabal.readthedocs.io/en/3.4/cabal-package.html#pkg-field-executable-main-is) always be `Main`.

### Your environment
Output of `haskell-language-server --probe-tools` or `haskell-language-server-wrapper --probe-tools`:

```sh
haskell-language-server version: 0.6.0.0 (GHC: 8.10.2) (PATH: /nix/store/aa763nk6yn1hdjqcwj9l7slkfl52i61d-haskell-language-server-0.6.0.0/bin/haskell-language-server-wrapper)
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: Not found
ghc: 8.10.2
```
VSCode

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.