Header menu logo FCQRS

Compose.AsyncValidatedLens Module

Functions and values

Function or value Description

AsyncValidatedLens.compose (arg1, arg2) (arg3, arg4)

Full Usage: AsyncValidatedLens.compose (arg1, arg2) (arg3, arg4)

Parameters:
    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>

Compose two AsyncValidatedLens instances.

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>

AsyncValidatedLens.composeAsyncValidatedLens (arg1, arg2) (arg3, arg4)

Full Usage: AsyncValidatedLens.composeAsyncValidatedLens (arg1, arg2) (arg3, arg4)

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

Returns: AsyncValidatedLens<'a, 'c, 'e>

Compose an AsyncValidatedLens with a standard Lens.

arg0 : 'a -> 'b
arg1 : 'b -> 'a -> Async<Result<'a, 'e>>
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> 'b
Returns: AsyncValidatedLens<'a, 'c, 'e>

AsyncValidatedLens.composeLensAsyncValidated (arg1, arg2) (arg3, arg4)

Full Usage: AsyncValidatedLens.composeLensAsyncValidated (arg1, arg2) (arg3, arg4)

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

Returns: AsyncValidatedLens<'a, 'c, 'e>

Compose a standard Lens with an AsyncValidatedLens.

arg0 : 'a -> 'b
arg1 : 'b -> 'a -> 'a
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> Async<Result<'b, 'e>>
Returns: AsyncValidatedLens<'a, 'c, 'e>

AsyncValidatedLens.mapError f (arg2, arg3)

Full Usage: AsyncValidatedLens.mapError f (arg2, arg3)

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

Returns: AsyncValidatedLens<'a, 'b, 'e2>

Map the error of an AsyncValidatedLens using the provided function.

f : 'e1 -> 'e2
arg1 : 'a -> 'b
arg2 : 'b -> 'a -> Async<Result<'a, 'e1>>
Returns: AsyncValidatedLens<'a, 'b, 'e2>

Type something to start searching.