Standard library
The bundled Prelude loads automatically unless the CLI uses
--no-prelude. Other library modules require an explicit import. Collection
updates return new values, so older values remain usable.
Library instances refer to Prelude capabilities. With --no-prelude, provide
those declarations explicitly before importing modules that implement them.
When a module graph imports one of these modules, include both the application root and the standard-library root. From the repository checkout:
cabal run jazz -- --run --entry-module App::Main \
--module-root path/to/app --module-root jazz/stdlib
Complexity statements describe logical Jazz operations. Callback cost is excluded unless a page states otherwise.
Data
- Maybe — optional values.
- Result — successful values and recoverable errors.
- NonEmpty — lists with a statically present first value.
Collections
- List — total access, transformation, folds, grouping, and sorting.
- Dictionary — insertion-ordered lookup with
Equatablekeys. - Queue — persistent first-in, first-out traversal.
- Map — ordered key-value storage with
Comparablekeys. - Set — persistent ordered unique values.
- Reduce — safe seedless folding over Reducible collections.
Text
- Char — Unicode scalar conversion and classification.
- Text — immutable Unicode-scalar text processing.
System
The generic Prelude methods map, foldLeft, foldRight, and combine use
collection instances supplied by imports. The explicit-import Reduce module
provides a safe seedless fold returning Maybe.