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

Feature request: Prefix generic type parameters #460

Closed
Smaug123 opened this issue Aug 12, 2019 · 1 comment
Closed

Feature request: Prefix generic type parameters #460

Smaug123 opened this issue Aug 12, 2019 · 1 comment

Comments

@Smaug123
Copy link
Contributor

Issue created from fantomas-ui

G-Research has a fairly strong norm of using prefix type parameters. Could we please have an option to keep them as prefixes?

Code

type 'a Foo = Foo of 'a

Result

type Foo<'a> = Foo of 'a

Options

Fantomas Next - 3.0.0-8/10/2019

Name Value
IndentSpaceNum 4
PageWidth 120
PreserveEndOfLine false
SemicolonAtEndOfLine false
SpaceBeforeArgument true
SpaceBeforeColon false
SpaceAfterComma true
SpaceAfterSemicolon true
IndentOnTryWith false
ReorderOpenDeclaration false
SpaceAroundDelimiter true
KeepNewlineAfter false
StrictMode false
@Smaug123 Smaug123 changed the title Prefix generic type parameters Feature request: Prefix generic type parameters Aug 13, 2019
@jindraivanek
Copy link
Contributor

Because information about used style is present in AST, it was easy to add: #461

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

No branches or pull requests

2 participants