Bool (Boolean Atom)
Definition
Bool Bool
Fields
| Field | Type | Description |
|---|---|---|
contents | Bool | True or False |
Nix Source ↔ AST
# Nix
true
# AST (wrapped in Constant)
{
"tag": "Constant",
"contents": { "tag": "Bool", "contents": true }
}
# Nix
false
# AST (wrapped in Constant)
{
"tag": "Constant",
"contents": { "tag": "Bool", "contents": false }
}
Related
- Constant: wrapper for atoms in expressions
Nix Library Access
syntax.mkBool true
syntax.mkBool false
syntax.mkConstant (syntax.mkBool true)