TDesu.FSharp Namespace
Core utilities: operators, Guard, UnixTime, String, Option, Result, Validation, Clock, StateMachine, NumericParsing.
| Type/Module | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fake clock for testing. Allows manual time control. Not thread-safe. |
|
|
Guard module — validate-and-throw in one call. |
|
|
|
|
|
Abstraction over system clock for testable time-dependent code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generic finite state machine: state + event → new state + effects. |
|
|
String utility functions — functional wrappers over String methods. |
|
|
Default clock implementation using the real system clock. |
|
|
Fast cached Unix timestamp — avoids repeated syscalls. Updated lazily, accurate to ~15ms (system timer resolution). |
|
|
Combinators for Validation. |
|
|
Applicative validation: collects ALL errors instead of short-circuiting.
Use |
|
|
Computation expression builder for Validation workflows.
Use |
|
|
Computation expression instance for Validation workflows: |
|
|
|
TDesu.FSharp