Standard Library Overview
The Paradox standard library is a single package called std. Import it with:
import std
This loads all definitions from every .dox file in the std directory. File names are purely organizational — they have no effect on imports or compilation.
Sections
- Std
-
validandilluminateinterfaces,CRUD,Module,URI,URIAuth - Collection
-
forinterface,reduce,filter,map,iterate,take,drop,any,all,elem,notelem,zip,zipWith,cons,snoc,head,tail - Algebra
-
Either,Maybe,Tuple,Thesewithforinstances and fold functions - Numeric
-
Natural,Positive,Negative,Port,WellKnownPort,RegisteredPort,EphemeralPort,PortType - Function
-
identity,const,flip,starling,apply,ylppa,applyBinary,curry,uncurry,compose - Persist
-
Key,Entity,entityinterface,SQLDefault,IndexType,ForeignKeyAction - Machine
-
Guard,Transition,StateConfig,Machine— Finite state machine types with compile-time verification and code generation for eleven languages
Submodules
std/ast(import withimport std/ast)-
Self-hosted AST types —
SrcSpan,Import,Product,Union,Expression,Type,Term,Primitive
Built-in Support
Some features work without any import:
-
Optionals (
T?) — built into the language -
Arrays (
[T]) and Sets ({T}) — built into the language -
foron arrays, sets, and optionals — built-in, no import needed
The for interface itself is defined in the std package, but the built-in instances for arrays, sets, and optionals are always available.