EffModule
PackageFCQRS.Model
Turns an instruction into a program.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| safeUnbox | safeUnbox o | Reads an interpreter's answer as the type the program expects. |
| op | op i k | The instruction `i`, followed by `k` applied to the answer read as `'X`. |
| perform | perform i | A program of one instruction, whose result is the interpreter's answer read as `'X`. |
| performR | performR i | `perform` for a `freeResult` program: the answer, read as `'X`, wrapped in `Ok`. |
Reads an interpreter's answer as the type the program expects. A null answer is `()`,
`None`, or a null reference. An answer of another type raises, naming both types.
Under Fable, the answer is not checked: JavaScript keeps no generic type to test, and a
type test of an option always fails there.
Parameters
| Name | Type | Description |
|---|---|---|
| o | obj |
Returns
'T
The instruction `i`, followed by `k` applied to the answer read as `'X`.
Parameters
| Name | Type | Description |
|---|---|---|
| i | 'I | |
| k | 'X -> Free<'I, 'A> |
Returns
Free<'I, 'A>
A program of one instruction, whose result is the interpreter's answer read as `'X`.
Parameters
| Name | Type | Description |
|---|---|---|
| i | 'I |
Returns
Free<'I, 'X>