diff options
Diffstat (limited to 'tvix/eval/src/value/list.rs')
-rw-r--r-- | tvix/eval/src/value/list.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs new file mode 100644 index 000000000000..08f56262e00c --- /dev/null +++ b/tvix/eval/src/value/list.rs @@ -0,0 +1,14 @@ +/// This module implements Nix lists. +use std::fmt::Display; + +use super::Value; + +#[derive(Clone, Debug, PartialEq)] +pub struct NixList(pub Vec<Value>); + +impl Display for NixList { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + // TODO(tazjin): format lists properly + f.write_fmt(format_args!("<list({})>", self.0.len())) + } +} |