Skip to content

Read hlint config + show stan errors #3127

@benjamin-thomas

Description

@benjamin-thomas

Hello!

I'm learning Haskell and so far the tooling really helps with its code insight features, great job ;)

I would like my tools to make me aware of the known footguns, such as partial functions, etc.

I've tried to use this hlint config file: https://github.com/NorfairKing/haskell-dangerous-functions/blob/master/hlint.yaml

And it's working fine at the command line. However vscode is not picking it up. I do get the normal hlint suggestions, however it looks like vscode does not read the config file at all.

Looking for a solution, I then understood the hlint support is baked into the lsp server. Reading this issue related to the lsp server project, I deduced that the hlint config should be read after an lsp restart. However I'm not seeing any changes in vscode so it seems that this is a vscode extension issue?

I would also like to be able to see stan hints in the editor. As for hlint, it seems that support is baked into the lsp server implementation: https://haskell-language-server.readthedocs.io/en/latest/features.html?highlight=stan#stan-hints

My stan setup works fine at the command line, but nothing bubbles up in the editor.

Could you comment whether those features are available? Or planned?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions