AsyncValidatedLensModule

PackageFCQRS.Model

Summary

NameSignatureSynopsis
composeAsyncValidatedLens.compose (arg0, arg1) (arg2, arg3)Compose two AsyncValidatedLens instances.
composeAsyncValidatedLensAsyncValidatedLens.composeAsyncValidatedLens (arg0, arg1) (arg2, arg3)Compose an AsyncValidatedLens with a standard Lens.
composeLensAsyncValidatedAsyncValidatedLens.composeLensAsyncValidated (arg0, arg1) (arg2, arg3)Compose a standard Lens with an AsyncValidatedLens.
mapErrorAsyncValidatedLens.mapError f (arg1, arg2)Map the error of an AsyncValidatedLens using the provided function.

compose

AsyncValidatedLens.compose (arg0, arg1) (arg2, arg3)
Member
Compose two AsyncValidatedLens instances.

Parameters

NameTypeDescription
arg0'a -> 'b
arg1'b -> 'a -> Async<Result<'a, 'e>>
arg2'b -> 'c
arg3'c -> 'b -> Async<Result<'b, 'e>>

Returns

AsyncValidatedLens<'a, 'c, 'e>

composeAsyncValidatedLens

AsyncValidatedLens.composeAsyncValidatedLens (arg0, arg1) (arg2, arg3)
Member
Compose an AsyncValidatedLens with a standard Lens.

Parameters

NameTypeDescription
arg0'a -> 'b
arg1'b -> 'a -> Async<Result<'a, 'e>>
arg2'b -> 'c
arg3'c -> 'b -> 'b

Returns

AsyncValidatedLens<'a, 'c, 'e>

composeLensAsyncValidated

AsyncValidatedLens.composeLensAsyncValidated (arg0, arg1) (arg2, arg3)
Member
Compose a standard Lens with an AsyncValidatedLens.

Parameters

NameTypeDescription
arg0'a -> 'b
arg1'b -> 'a -> 'a
arg2'b -> 'c
arg3'c -> 'b -> Async<Result<'b, 'e>>

Returns

AsyncValidatedLens<'a, 'c, 'e>

mapError

AsyncValidatedLens.mapError f (arg1, arg2)
Member
Map the error of an AsyncValidatedLens using the provided function.

Parameters

NameTypeDescription
f'e1 -> 'e2
arg1'a -> 'b
arg2'b -> 'a -> Async<Result<'a, 'e1>>

Returns

AsyncValidatedLens<'a, 'b, 'e2>