KeyName
Constructors
| Constructor | Fields | Description |
|---|---|---|
DynamicKey | contents: Antiquoted String | Dynamic/computed key |
StaticKey | contents: VarName | Static identifier key |
Description
KeyName represents attribute keys in bindings and attribute paths. A bare identifier like foo is a StaticKey; a quoted string like "foo bar" or antiquoted ${name} is a DynamicKey.
Pages
Related
Nix Library Access
syntax.mkStaticKey "foo"
syntax.mkDynamicKey (syntax.mkAntiquoted (syntax.mkSym "name"))