Skip to content

Redefine the (|>) operator in a way to reveal passed types #897

Closed
@pkese

Description

@pkese

When hovering over an |> operator with mouse cursor, I see the following information (in VSCode)

image

Notice that there is no information about the generic types that are involved.

If i redefine the |> operator as just

let (|>) arg func = func arg

..then when hovering over the opearator the same way, I get to see also the types that are involved

image

In terms of usability, seeing type information is an improvement, because in longer chains of |> workflows, it is sometimes hard to know what type is being passed around in each step. It would be nice if this was the default.

Please make the compiler service reveal inferred type wherever possible.

A starter solution would be to just replace the definition of operator definitions in the way as described above.

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