We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-online
module Services = /// Builds a Stream Resolve function appropriate to the store being used type StreamResolver(storage: Storage.Instance) = member __.Resolve ( codec: FsCodec.IEventCodec<'event, byte [], _>, fold: ('state -> 'event seq -> 'state), initial: 'state, snapshot: (('event -> bool) * ('state -> 'event)) ) = match storage with | Storage.MemoryStore store -> Equinox.MemoryStore.Resolver(store, FsCodec.Box.Codec.Create(), fold, initial).Resolve | Storage.EventStore (gateway, cache) -> let accessStrategy = Equinox.EventStore.AccessStrategy.RollingSnapshots snapshot let cacheStrategy = Equinox.EventStore.CachingStrategy.SlidingWindow(cache, TimeSpan.FromMinutes 20.) Equinox.EventStore.Resolver<'event, 'state, _>(gateway, codec, fold, initial, cacheStrategy, accessStrategy).Resolve
module Services = /// Builds a Stream Resolve function appropriate to the store being used type StreamResolver(storage: Storage.Instance) = member __.Resolve(codec: FsCodec.IEventCodec<'event, byte [], _>, fold: ('state -> 'event seq -> 'state), initial: 'state, snapshot: (('event -> bool) * ('state -> 'event))) = match storage with | Storage.MemoryStore store -> Equinox.MemoryStore.Resolver(store, FsCodec.Box.Codec.Create(), fold, initial).Resolve | Storage.EventStore (gateway, cache) -> let accessStrategy = Equinox.EventStore.AccessStrategy.RollingSnapshots snapshot let cacheStrategy = Equinox.EventStore.CachingStrategy.SlidingWindow(cache, TimeSpan.FromMinutes 20.) Equinox.EventStore.Resolver<'event, 'state, _> (gateway, codec, fold, initial, cacheStrategy, accessStrategy) .Resolve
Please describe here fantomas problem you encountered.
Before:
After:
Source code: https://github.com/jet/dotnet-templates/blob/master/equinox-web/Web/Startup.fs (dotnet new -i Equinox.Templates --> dotnet new eqxweb -t -e)
EDIT: If I remove the generic type alias the formatting stops breaking the line, but still crossing the configured 120 limit
Does the configuration options support something like this?
Fantomas Master at 09/10/2020 21:17:15 - 5632847
Default Fantomas configuration
The text was updated successfully, but these errors were encountered:
Hey, thanks for reporting this issue. It rings a bell 😅.
No, please upvote #501 for this.
Lastly, you might be interested in the fsharp_alternative_long_member_definitions setting.
Sorry, something went wrong.
Don't break line between TypeApp and Parenthesis tuple inside DotGet. F…
ce48408
…ixes fsprojects#1134.
fe9b65f
…ixes #1134. (#1135)
Successfully merging a pull request may close this issue.
Issue created from fantomas-online
Code
Result
Problem description
Please describe here fantomas problem you encountered.
Before:
After:
Source code:
https://github.com/jet/dotnet-templates/blob/master/equinox-web/Web/Startup.fs
(dotnet new -i Equinox.Templates --> dotnet new eqxweb -t -e)
EDIT:
If I remove the generic type alias the formatting stops breaking the line, but still crossing the configured 120 limit
Does the configuration options support something like this?
Extra information
Options
Fantomas Master at 09/10/2020 21:17:15 - 5632847
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: