Library Effects
Flix provides several built-in library effects for common I/O operations. These
effects all have default handlers, so no explicit runWithIO is needed in
main.
| Effect | Description |
|---|---|
Assert | Runtime assertions (assertTrue, assertEq, etc.) with configurable handlers. |
Logger | Structured logging at five severity levels with filtering and collection. |
Math.Random | Generating pseudorandom numbers, with optional seeded determinism. |
Net.Http / Net.Https | Sending HTTP requests with a fluent API, middleware (retries, rate limiting, circuit breakers). |
Sys.Console | Terminal I/O: reading input, printing to stdout/stderr, prompts, and menus. |
Sys.Env | Accessing environment variables, system properties, and platform information. |
Sys.Exit | Terminating the program with a specific exit code. |
Sys.Process | Spawning and managing OS processes. |
Time.Clock | Querying the current wall-clock time in various units. |
Time.Sleep | Pausing the current thread with composable middleware (jitter, caps, logging). |