Skip to content

Inlay hints usage #2938

Open
Open
@July541

Description

@July541

In order to prevent spam, I open a thread to discuss about the inlay hint usage in Haskell.

Previous info is here: #2019 (comment)

lsp-3.17 had supported inlay hint, in which can embed some useful info, it wildly used by displaying function parameter names in other languages. But it is not suitable in Haskell since Haskell have a lot of currying, which looks not valid to display parameter name in Haskell.

Sample of inlay hint:
image

I don't want Haskell missing this straightforward function, so I wrote these to discuss what we can do to use inlay hint best, here are some I'd like:

  1. Show type signature for let expressions
f = let g {- inlay hint here, should be `:: Bool` -}= True
     in g
  1. Show operator fixity as mentioned in Feature request: Fixity information in hover #2019 (comment)

All these are initial ideas for discussion, feel free to put forward any suggestions:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in discussionNot actionable, because discussion is still ongoing or there's no decision yettype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions