Skip to content

When using parenthesis in type definition, it will sometimes keep adding additional () for each time fantomas i run #1057

Closed
@drhumlen

Description

Issue created from fantomas-online

Code

type AB = A -> B list * C -> D
type AB = A -> (B list * C -> D)
type AB = A -> ((B list * C -> D))

type AB = A -> (C -> D)

Result

type AB = A -> B list * C -> D
type AB = A -> ((B list * C -> D))
type AB = A -> (((B list * C -> D)))

type AB = A -> (C -> D)

Problem description

Please describe here fantomas problem you encountered.

Extra information

  • The formatted result breaks by code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas Master at 08/28/2020 16:41:18 - 6ca540e

Default Fantomas configuration

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