lux/data/text/format

Types

Formatter

A way to produce readable text from values.

(type: (Formatter a)
  (-> a lux;Text))

Macros

format

## Text interpolation as a macro.
(format "Static part " (%t static) " doesn't match URI: " uri)

Values

%ast

(Formatter lux;AST)

%b

(Formatter lux;Bool)

%bin

(Formatter lux;Nat)

%c

(Formatter lux;Char)

%f

(Formatter lux;Frac)

%hex

(Formatter lux;Nat)

%i

(Formatter lux;Int)

%ident

(Formatter lux;Ident)

(%list formatter)

(All [a] (-> (Formatter a) (Formatter (lux;List a))))

%n

(Formatter lux;Nat)

%oct

(Formatter lux;Nat)

%r

(Formatter lux;Real)

%t

(Formatter lux;Text)

%type

(Formatter lux;Type)