No matching definitions.

Turmeric Standard Library

Auto-generated API reference. Run just docs to regenerate.

Core

cstr

byte primitives on raw :cstr values.

2 exported definitions

schan

session-typed channel wrappers over a linear opaque handle.

11 exported definitions

time

Time capability implementation using platform time functions.

12 exported definitions

tur/args

CLI argument parser with a builder-pattern API.

18 exported definitions

tur/arrow

arrow combinators over the (->) function arrow, in two surfaces.

13 exported definitions

tur/async_file

non-blocking file I/O integrated with the cooperative scheduler.

6 exported definitions

tur/async_pipe

non-blocking stdin/stdout pipe I/O for the cooperative scheduler.

4 exported definitions

tur/async_socket

non-blocking TCP socket I/O for the cooperative scheduler.

8 exported definitions

tur/atomic

atomic load/store/add/sub/swap/CAS on 64-bit integers.

9 exported definitions

tur/backtrack

backtracking monad (list monad) for non-deterministic search.

24 exported definitions

tur/bits

bitwise operations not expressible as arithmetic in Turmeric.

2 exported definitions

tur/capability

capability-passing typeclasses for controlled side-effect injection.

26 exported definitions

tur/chan

synchronous and async buffered channels for inter-fiber communication.

13 exported definitions

tur/comonad

Comonad typeclass -- the categorical dual of Monad.

2 exported definitions

tur/concurrent

stub concurrency types for linear resource tracking.

4 exported definitions

tur/condvar

POSIX condition variable (pthread_cond_t) wrapped as ptr<void>.

6 exported definitions

tur/contract

runtime contract macros (assert!, require!, ensure!, ...).

11 exported definitions

tur/csv

CSV parser and emitter following RFC 4180.

14 exported definitions

tur/digest

SHA-256 and MD5 checksum implementations.

5 exported definitions

tur/dynvar

dynamic variables and binding conveyance for cooperative tasks.

1 exported definition

tur/effects

standard algebraic effects for IO, logging, and randomness.

23 exported definitions

tur/either

binary sum type Either[L R]: Left l or Right r.

9 exported definitions

tur/env

environment variable access (getenv, setenv, unsetenv).

11 exported definitions

tur/equal

type-equality witness (Equal GADT) for type-safe coercions.

4 exported definitions

tur/existential

helpers for native pack/open existential types.

2 exported definitions

tur/fd

Fd: an opaque newtype over a POSIX file descriptor.

4 exported definitions

tur/fiber

lightweight cooperative fibers backed by the FiberBlock runtime.

16 exported definitions

tur/fix

Fix type: the fixed-point of a functor, with cata and ana.

5 exported definitions

tur/float-range

FloatRange: continuous interval with inclusive or exclusive ends.

19 exported definitions

tur/free

Free monad over a functor f for building effect DSLs.

6 exported definitions

tur/fs

extended file-system operations (stat, readdir, fnmatch, walk).

24 exported definitions

tur/future

Future<T> and Promise<T> for asynchronous results.

37 exported definitions

tur/gadt-vec

length-indexed GVec GADT with phantom natural-number type parameter.

9 exported definitions

tur/gen

generator helpers and macros for consuming and composing generators.

11 exported definitions

tur/grid

typed Grid[A]: 2D row-major grid parameterized over element type A.

7 exported definitions

tur/hamt

persistent hash-array-mapped trie (HAMT) map.

33 exported definitions

tur/hash

canonical integer hashing across numeric widths.

9 exported definitions

tur/httpd

Lightweight HTTP/1.0 and HTTP/1.1 server.

91 exported definitions

tur/httpd-compress

gzip response compression middleware.

3 exported definitions

tur/image

application image dumps via serializable continuations.

17 exported definitions

tur/image_hooks

standard resource-reacquisition hooks for image dumps.

9 exported definitions

tur/io

FileSystem capability implementation using libc functions.

19 exported definitions

tur/json

JSON encode and decode with no external dependencies.

30 exported definitions

tur/kleisli

the Kleisli arrow over Option: `Kleisli A B = A -> Option B`.

6 exported definitions

tur/lens

first-class functional lenses (getter/setter optics).

5 exported definitions

tur/list

typed singly-linked List[A] with Cons cells.

24 exported definitions

tur/list-typed

a phantom-typed (List A) view over the int64 cons-list

5 exported definitions

tur/log

Logger capability implementation using stderr/stdout.

10 exported definitions

tur/logic

miniKanren-style logic programming (unification, goals, streams).

46 exported definitions

tur/macros

core control-flow and utility macros (cond, when, for, do-m, ...).

24 exported definitions

tur/map

typed Map[K V]: persistent hash map requiring Hash[K] and MapKey[K].

45 exported definitions

tur/math

thin wrappers around libm functions (sin, cos, sqrt, ...).

8 exported definitions

tur/mutex

POSIX mutex (pthread_mutex_t) wrapped as ptr<void>.

6 exported definitions

tur/mutmap

MutableMap[K V]: mutable open-addressed hash table.

17 exported definitions

tur/nat

type-level natural numbers via GADT for phantom length annotations.

5 exported definitions

tur/net

stub networking type (Socket) for linear resource tracking.

4 exported definitions

tur/option

typed Option[A]: parameterized optional value.

15 exported definitions

tur/pair

typed Pair[A B]: parameterized two-element tuple.

8 exported definitions

tur/panic

inspect panics recovered by catch-unwind.

6 exported definitions

tur/parsec

parser combinator library built on the backtracking monad.

59 exported definitions

tur/path

pure path-string manipulation (join, dirname, basename, extension).

7 exported definitions

tur/process

process management: pid, spawn, wait, exec, cwd, chdir.

12 exported definitions

tur/random

Random capability implementation using the platform RNG.

8 exported definitions

tur/range

Range: continuous interval with inclusive, exclusive, or unbounded ends.

52 exported definitions

tur/range-bound

Bound A GADT: typed range endpoints (R3).

15 exported definitions

tur/rc

reference-counted pointer (rc<T>) for shared ownership.

3 exported definitions

tur/re

POSIX extended regular expressions via regcomp/regexec.

13 exported definitions

tur/reactor

lightweight evented I/O reactor.

21 exported definitions

tur/ref

heap-allocated mutable reference cell with independent ownership.

6 exported definitions

tur/refined

refinement newtypes for total collection accessors.

15 exported definitions

tur/result

typed Result[A B]: ok value A or err value B.

16 exported definitions

tur/rwlock

POSIX read-write lock (pthread_rwlock_t) wrapped as ptr<void>.

8 exported definitions

tur/safe

bounds-checked operations returning Option or Result.

7 exported definitions

tur/scheduler

cooperative fiber scheduler managing a fiber run queue.

6 exported definitions

tur/scheduler_mt

multi-threaded work-stealing scheduler for parallel fibers.

10 exported definitions

tur/schema

runtime schema validation for untyped boundary data.

46 exported definitions

tur/select

multi-channel select: wait on multiple channel operations at once.

0 exported definitions

tur/serial

serializable continuations for persistent workflow state.

16 exported definitions

tur/session

standard session-type protocol patterns for typed channels.

5 exported definitions

tur/set

typed Set[A]: persistent set backed by the HAMT.

24 exported definitions

tur/sized

static sizes and size arithmetic for memory layout verification.

33 exported definitions

tur/sized-bits

SizedBitVec: packed bit vector with static size annotations.

11 exported definitions

tur/sized-buf

SizedBuf: flat contiguous memory layout for sized types.

16 exported definitions

tur/sized-handle-existential

2 exported definitions

tur/sized-matrix

SizedMatrix: row-major 2D matrix with static size annotations.

15 exported definitions

tur/slice

typed Slice[A]: bounds-checked borrowed view into A elements.

6 exported definitions

tur/stm

Software Transactional Memory: transactional read/write on TVars.

7 exported definitions

tur/str

UTF-8 string view (pointer + length).

9 exported definitions

tur/sym

first-class interned runtime symbols (:Sym).

5 exported definitions

tur/sym-dynamic

opt-in runtime symbol interning (str->sym, SYM5).

1 exported definition

tur/sync

Once and Semaphore synchronization primitives.

7 exported definitions

tur/taskgroup

structured concurrency with scoped TaskGroup.

28 exported definitions

tur/term

terminal utilities: size, tty detection, raw mode, ANSI colors.

12 exported definitions

tur/test

lightweight unit test runner for Turmeric.

10 exported definitions

tur/thread

POSIX thread spawn, join, and detach wrappers.

9 exported definitions

tur/threadpool

WorkQueue<T> and ThreadPool for task-based parallelism.

20 exported definitions

tur/timer

Timer API backed by a min-heap timer wheel.

4 exported definitions

tur/tuple

typed N-ary tuples (Tuple2..Tuple8).

52 exported definitions

tur/typeclass

built-in typeclasses: Eq, Ord, Show, Num.

34 exported definitions

tur/typeclass-alternative

Alternative -- container with an empty value and a choice combinator.

0 exported definitions

tur/typeclass-applicative

Applicative -- container with a pure constructor and an ap combinator.

0 exported definitions

tur/typeclass-bifunctor

Bifunctor -- map over both sides of a binary type constructor.

0 exported definitions

tur/typeclass-clone

minimal Clone typeclass stub for definstance sites.

2 exported definitions

tur/typeclass-eq

minimal Eq typeclass stub for typed-collection definstances.

12 exported definitions

tur/typeclass-functor

Phase TS5: Minimal Functor class stub for typed-collection definstances.

0 exported definitions

tur/typeclass-hash

minimal Hash typeclass stub for typed-collection keys.

5 exported definitions

tur/typeclass-monad

Monad -- sequencing with flatMap/bind.

0 exported definitions

tur/typeclass-monaderror

MonadError -- a monad m carrying an error channel e.

0 exported definitions

tur/typeclass-show

the Show typeclass, its primitive instances, and the

22 exported definitions

tur/unique

uniqueness-type patterns (with-unique, consume, replace).

3 exported definitions

tur/vec

typed Vec[A]: parameterized growable array.

19 exported definitions

tur/vec-existential

Vec[A] as a size-hiding existential for heterogeneous collections.

2 exported definitions

tur/workflow

persistent workflow helpers built on tur/serial.

4 exported definitions

tur/zipper

typed Zipper[A]: 1D list zipper with typed focus and neighbors.

11 exported definitions

seq

test

turi