about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/list.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs
index 08f56262e00c..d5f7c8b2ba44 100644
--- a/tvix/eval/src/value/list.rs
+++ b/tvix/eval/src/value/list.rs
@@ -8,7 +8,13 @@ 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()))
+        f.write_str("[ ")?;
+
+        for v in &self.0 {
+            v.fmt(f)?;
+            f.write_str(" ")?;
+        }
+
+        f.write_str("]")
     }
 }