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

A second issue in units of measure formatting #2265

Closed
3 tasks
dsyme opened this issue May 18, 2022 · 2 comments · Fixed by #2281
Closed
3 tasks

A second issue in units of measure formatting #2265

dsyme opened this issue May 18, 2022 · 2 comments · Fixed by #2281
Labels
bug (soundness) good first issue Long hanging fruit: easy issue to get your feet wet!

Comments

@dsyme
Copy link
Contributor

dsyme commented May 18, 2022

Issue created from fantomas-online

Code

type becquerel = second^-1       

Result

type becquerel = second^- 1

Problem description

Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.

Extra information

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

Options

Fantomas master branch at 2022-05-18T11:51:41Z - ce92e66

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

@dsyme
Copy link
Contributor Author

dsyme commented May 18, 2022

I'm surprised the formatted code is accepted by the compiler :)

@nojaf
Copy link
Contributor

nojaf commented May 19, 2022

This problem can easily be solved by removing the space in

| SynRationalConst.Negate (RationalConst s) -> sprintf "- %s" s

It can be done separately from #2264.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (soundness) good first issue Long hanging fruit: easy issue to get your feet wet!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants