Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After discriminated union in module wrongly indented #1122

Closed
2 tasks
mk185147 opened this issue Sep 9, 2020 · 0 comments · Fixed by #1125
Closed
2 tasks

After discriminated union in module wrongly indented #1122

mk185147 opened this issue Sep 9, 2020 · 0 comments · Fixed by #1125

Comments

@mk185147
Copy link

mk185147 commented Sep 9, 2020

Issue created from fantomas-online

Code

namespace Test

module App = 
    type Msg = B of C

    let a = "test"

Result

namespace Test

module App =
    type Msg = B of C

let a = "test"

Problem description

When formatting a single case discriminated union in module the next code for module is then indented as if it were not part of the module

Extra information

  • [ x] 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 09/09/2020 12:13:33 - cd36f2c

Default Fantomas configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant