Skip to content

[style-guide] Treat cast operators :> and :?> as pipe operators #737

@cmeeren

Description

@cmeeren

I suggest that the style guide is updated to specify that the cast operators :> and :?> can be treated as pipelines when formatting.

For example, for a suitable max width, Fantomas currently formats

MyImpl(arg) :> MyInterface |> MyUnionCase

as

MyImpl(arg) :> MyInterface
|> MyUnionCase

whereas I'd suggest

MyImpl(arg)
:> MyInterface
|> MyUnionCase

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions