Header menu logo FCQRS

Compose.ValidatedLens Module

Functions and values

Function or value Description

ValidatedLens.composeLensPrismMapErrors (arg1, arg2) (arg3, arg4) mapError1 mapError2

Full Usage: ValidatedLens.composeLensPrismMapErrors (arg1, arg2) (arg3, arg4) mapError1 mapError2

Parameters:
    arg0 : 'a -> 'b
    arg1 : 'b -> 'a -> Result<'a, 'e1>
    arg2 : 'b -> 'c option
    arg3 : 'c -> 'b -> Result<'b, 'e2>
    mapError1 : 'e1 -> 'e
    mapError2 : 'e2 -> 'e

Returns: ValidatedPrism<'a, 'c, 'e>
arg0 : 'a -> 'b
arg1 : 'b -> 'a -> Result<'a, 'e1>
arg2 : 'b -> 'c option
arg3 : 'c -> 'b -> Result<'b, 'e2>
mapError1 : 'e1 -> 'e
mapError2 : 'e2 -> 'e
Returns: ValidatedPrism<'a, 'c, 'e>

ValidatedLens.composeMapErrors (arg1, arg2) (arg3, arg4) mapError1 mapError2

Full Usage: ValidatedLens.composeMapErrors (arg1, arg2) (arg3, arg4) mapError1 mapError2

Parameters:
    arg0 : 'a -> 'b
    arg1 : 'b -> 'a -> Result<'a, 'e1>
    arg2 : 'b -> 'c
    arg3 : 'c -> 'b -> Result<'b, 'e2>
    mapError1 : 'e1 -> string
    mapError2 : 'e2 -> string

Returns: ValidatedLens<'a, 'c, string>

Compose two ValidatedLens instances while mapping errors.

arg0 : 'a -> 'b
arg1 : 'b -> 'a -> Result<'a, 'e1>
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> Result<'b, 'e2>
mapError1 : 'e1 -> string
mapError2 : 'e2 -> string
Returns: ValidatedLens<'a, 'c, string>

ValidatedLens.mapError f (arg2, arg3)

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

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

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

Type something to start searching.