Skip to content

Computation expresions formatting #19

@xperiandri

Description

@xperiandri

Original issue fsprojects/fantomas#1526
This repository does not provide any sample of computation expressions formatting.

I propose to define

let asyncDoSomething () = async {
    do! asyncSomething ()
    let! result = asyncGetSomething ()
    ()
}

let items = seq {
    "item1"
    "item2"
}

as a standard formatting option.

Currently Fantomas changes the code above to

let asyncDoSomething () = async {
    do! asyncSomething ()
    let! result = asyncGetSomething ()
    ()
}

let items = seq {
    "item1"
    "item2"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions