WorkflowResultModule
PackageFCQRS.Workflows
Functions on a workflow that gives a `Result`.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| bind | WorkflowResult.bind next source | Continues with `next` after an `Ok`, and gives an `Error` unchanged. |
| map | WorkflowResult.map f source | Applies `f` to an `Ok` value. |
| mapError | WorkflowResult.mapError f source | Applies `f` to an `Error`, so steps with different error types can share one block. |
| ofWorkflow | WorkflowResult.ofWorkflow source | Gives `Ok` with the value of a step that does not give a `Result`. |
Continues with `next` after an `Ok`, and gives an `Error` unchanged.
Parameters
| Name | Type | Description |
|---|---|---|
| next | 'A -> Workflow<Result<'B, 'E>> | |
| source | Workflow<Result<'A, 'E>> |
Returns
Workflow<Result<'B, 'E>>
Applies `f` to an `Ok` value.
Parameters
| Name | Type | Description |
|---|---|---|
| f | 'A -> 'B | |
| source | Workflow<Result<'A, 'E>> |
Returns
Workflow<Result<'B, 'E>>
Applies `f` to an `Error`, so steps with different error types can share one block.
Parameters
| Name | Type | Description |
|---|---|---|
| f | 'E -> 'F | |
| source | Workflow<Result<'T, 'E>> |
Returns
Workflow<Result<'T, 'F>>