Skip to main content

Crate tidepool_runtime

Crate tidepool_runtime 

Source
Expand description

High-level runtime for compiling and executing Haskell source via Tidepool.

Provides compile_haskell (source to Core) and compile_and_run (source to evaluated result), with filesystem caching of compiled CBOR artifacts.

Structs§

EvalResult
Opaque result of evaluating a Haskell expression. Bundles the computed Value with the DataConTable needed to render constructor names.

Enums§

CompileError
Errors that can occur during Haskell compilation.
JitError
Error type for JIT compilation/execution failures.
RuntimeError
Unified error type for compile + run pipeline.
Value
Runtime value for the tree-walking interpreter.

Traits§

DispatchEffect
Tag-based effect dispatch over an HList of handlers.

Functions§

compile_and_run
Compile Haskell source and run it with the given effect handlers, using the default nursery size (64 MiB).
compile_and_run_pure
Compile Haskell source and run it as a pure (non-effectful) program.
compile_and_run_with_nursery_size
Compile Haskell source and run it with the given effect handlers, using the specified nursery size.
compile_haskell
Compiles Haskell source code to Tidepool Core at runtime.
drain_diagnostics
Drain all accumulated diagnostics.
push_diagnostic
Push a diagnostic message to the thread-local buffer.
value_to_json
Convert a tidepool Value to serde_json::Value using the DataConTable for constructor names.

Type Aliases§

CompileResult
Result of successful Haskell compilation: a Core expression, DataCon metadata, and warnings.