Skip to content

Commit f486d5a

Browse files
committed
Format the world
1 parent 6802608 commit f486d5a

File tree

12 files changed

+41
-78
lines changed

12 files changed

+41
-78
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"rollForward": false
1818
},
1919
"fantomas": {
20-
"version": "6.3.16",
20+
"version": "7.0.0",
2121
"commands": [
2222
"fantomas"
2323
],

src/FsToolkit.ErrorHandling.IcedTasks/CancellableTaskValidationCE.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,8 @@ module AsyncExtensions =
236236
this.ReturnFrom(Async.AwaitCancellableTask t)
237237

238238
member inline this.Bind
239-
([<InlineIfLambda>] t: CancellableTask, [<InlineIfLambda>] binder: (unit -> Async<'U>)) : Async<
240-
'U
241-
>
242-
=
239+
([<InlineIfLambda>] t: CancellableTask, [<InlineIfLambda>] binder: (unit -> Async<'U>))
240+
: Async<'U> =
243241
this.Bind(Async.AwaitCancellableTask t, binder)
244242

245243
member inline this.ReturnFrom([<InlineIfLambda>] t: CancellableTask) : Async<unit> =

src/FsToolkit.ErrorHandling.JobResult/JobResultCE.fs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,8 @@ module JobResultCE =
5858
Job.tryWithDelay computation handler
5959

6060
member inline _.TryFinally
61-
(computation: Job<Result<'T, 'TError>>, [<InlineIfLambda>] compensation: unit -> unit) : Job<
62-
Result<
63-
'T,
64-
'TError
65-
>
66-
>
67-
=
61+
(computation: Job<Result<'T, 'TError>>, [<InlineIfLambda>] compensation: unit -> unit)
62+
: Job<Result<'T, 'TError>> =
6863
Job.tryFinallyFun computation compensation
6964

7065
member inline _.TryFinally

src/FsToolkit.ErrorHandling/AsyncOptionCE.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ module AsyncOptionCE =
4343
async.TryFinally(computation, compensation)
4444
#if !FABLE_COMPILER
4545
member inline _.TryFinallyAsync
46-
(computation: Async<'value option>, [<InlineIfLambda>] compensation: unit -> ValueTask) : Async<
47-
'value option
48-
>
49-
=
46+
(computation: Async<'value option>, [<InlineIfLambda>] compensation: unit -> ValueTask)
47+
: Async<'value option> =
5048
let compensation =
5149
async {
5250
let vTask = compensation ()

src/FsToolkit.ErrorHandling/AsyncResultCE.fs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,8 @@ module AsyncResultCE =
4646
async.TryWith(computation, handler)
4747

4848
member inline _.TryFinally
49-
(computation: Async<Result<'ok, 'error>>, [<InlineIfLambda>] compensation: unit -> unit) : Async<
50-
Result<
51-
'ok,
52-
'error
53-
>
54-
>
55-
=
49+
(computation: Async<Result<'ok, 'error>>, [<InlineIfLambda>] compensation: unit -> unit)
50+
: Async<Result<'ok, 'error>> =
5651
async.TryFinally(computation, compensation)
5752
#if !FABLE_COMPILER
5853
member inline _.TryFinallyAsync

src/FsToolkit.ErrorHandling/AsyncResultOptionCE.fs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ module AsyncResultOptionCE =
8080
#endif
8181

8282
member inline this.While
83-
([<InlineIfLambda>] guard: unit -> bool, computation: AsyncResultOption<unit, 'error>) : AsyncResultOption<
84-
unit,
85-
'error
86-
>
87-
=
83+
([<InlineIfLambda>] guard: unit -> bool, computation: AsyncResultOption<unit, 'error>)
84+
: AsyncResultOption<unit, 'error> =
8885
if guard () then
8986
let mutable whileAsync = Unchecked.defaultof<_>
9087

@@ -152,11 +149,8 @@ module AsyncResultOptionCEExtensions =
152149

153150

154151
member inline this.For
155-
(sequence: #seq<'ok>, [<InlineIfLambda>] binder: 'ok -> AsyncResultOption<unit, 'error>) : AsyncResultOption<
156-
unit,
157-
'error
158-
>
159-
=
152+
(sequence: #seq<'ok>, [<InlineIfLambda>] binder: 'ok -> AsyncResultOption<unit, 'error>)
153+
: AsyncResultOption<unit, 'error> =
160154
this.Using(
161155
sequence.GetEnumerator(),
162156
fun enum ->

src/FsToolkit.ErrorHandling/AsyncValidationCE.fs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ module AsyncValidationCE =
2828
async.Delay generator
2929

3030
member inline this.Combine
31-
(validation1: AsyncValidation<unit, 'error>, validation2: AsyncValidation<'ok, 'error>) : AsyncValidation<
32-
'ok,
33-
'error
34-
>
35-
=
31+
(validation1: AsyncValidation<unit, 'error>, validation2: AsyncValidation<'ok, 'error>)
32+
: AsyncValidation<'ok, 'error> =
3633
this.Bind(validation1, (fun () -> validation2))
3734

3835
member inline _.TryWith
@@ -71,11 +68,8 @@ module AsyncValidationCE =
7168

7269

7370
member inline this.For
74-
(sequence: #seq<'ok>, [<InlineIfLambda>] binder: 'ok -> AsyncValidation<unit, 'error>) : AsyncValidation<
75-
unit,
76-
'error
77-
>
78-
=
71+
(sequence: #seq<'ok>, [<InlineIfLambda>] binder: 'ok -> AsyncValidation<unit, 'error>)
72+
: AsyncValidation<unit, 'error> =
7973
this.Using(
8074
sequence.GetEnumerator(),
8175
fun enum -> this.While(enum.MoveNext, this.Delay(fun () -> binder enum.Current))

src/FsToolkit.ErrorHandling/ResultCE.fs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ module ResultCE =
3030
generator ()
3131

3232
member inline this.Combine
33-
(result: Result<unit, 'error>, [<InlineIfLambda>] binder: unit -> Result<'ok, 'error>) : Result<
34-
'ok,
35-
'error
36-
>
37-
=
33+
(result: Result<unit, 'error>, [<InlineIfLambda>] binder: unit -> Result<'ok, 'error>)
34+
: Result<'ok, 'error> =
3835
this.Bind(result, binder)
3936

4037
member inline this.TryWith
@@ -58,11 +55,8 @@ module ResultCE =
5855
compensation ()
5956

6057
member inline this.Using
61-
(resource: 'disposable :> IDisposableNull, binder: 'disposable -> Result<'ok, 'error>) : Result<
62-
'ok,
63-
'error
64-
>
65-
=
58+
(resource: 'disposable :> IDisposableNull, binder: 'disposable -> Result<'ok, 'error>)
59+
: Result<'ok, 'error> =
6660
this.TryFinally(
6761
(fun () -> binder resource),
6862
(fun () ->

src/FsToolkit.ErrorHandling/TaskResultCE.fs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,8 @@ type TaskResultBuilderBase() =
8484

8585
/// Builds a step that executes the body while the condition predicate is true.
8686
member inline _.While
87-
([<InlineIfLambda>] condition: unit -> bool, body: TaskResultCode<'TOverall, 'Error, unit>) : TaskResultCode<
88-
'TOverall,
89-
'Error,
90-
unit
91-
>
92-
=
87+
([<InlineIfLambda>] condition: unit -> bool, body: TaskResultCode<'TOverall, 'Error, unit>)
88+
: TaskResultCode<'TOverall, 'Error, unit> =
9389
let mutable keepGoing = true
9490

9591
ResumableCode.While(
@@ -121,12 +117,8 @@ type TaskResultBuilderBase() =
121117
/// Wraps a step in a try/finally. This catches exceptions both in the evaluation of the function
122118
/// to retrieve the step, and in the continuation of the step (if any).
123119
member inline _.TryFinally
124-
(body: TaskResultCode<'TOverall, 'Error, 'T>, [<InlineIfLambda>] compensation: unit -> unit) : TaskResultCode<
125-
'TOverall,
126-
'Error,
127-
'T
128-
>
129-
=
120+
(body: TaskResultCode<'TOverall, 'Error, 'T>, [<InlineIfLambda>] compensation: unit -> unit)
121+
: TaskResultCode<'TOverall, 'Error, 'T> =
130122

131123
// printfn "TryFinally Called --> "
132124

src/FsToolkit.ErrorHandling/ValidationCE.fs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,8 @@ module ValidationCE =
9696
)
9797

9898
member inline _.BindReturn
99-
(input: Validation<'okInput, 'error>, [<InlineIfLambda>] mapper: 'okInput -> 'okOutput) : Validation<
100-
'okOutput,
101-
'error
102-
>
103-
=
99+
(input: Validation<'okInput, 'error>, [<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
100+
: Validation<'okOutput, 'error> =
104101
Validation.map mapper input
105102

106103
member inline _.MergeSources

0 commit comments

Comments
 (0)