Skip to content

CodeLens to add type signature failed to deal with functions with * in their names #622

Closed
@berberman

Description

@berberman

image

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 0.6.0.0 (GHC: 8.10.2) (PATH: /home/berberman/.cabal/store/ghc-8.10.2/haskell-language-server-0.6.0.0-12a6a1bf45aba2e44066b7b11fef0d76d92497c62667866a713a7034b763f060/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:          3.2.0.0
stack:          2.5.1
ghc:            8.10.2

Which lsp-client do you use:
vscode

Steps to reproduce

Create a function whose name contains * .

Expected behaviour

Code lens helps me to add the missing type signature properly.

Actual behaviour

Type signature is cut off at *.

Note

https://github.com/haskell/ghcide/blob/c4418abdc10c93eda0b27f24b1076995fff9de45/src/Development/IDE/Plugin/CodeAction.hs#L686-L692

Why we take until the * or ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcide-type-lensestype: 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