diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index 08f56262e..d5f7c8b2b 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -8,7 +8,13 @@ pub struct NixList(pub Vec); 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!("", self.0.len())) + f.write_str("[ ")?; + + for v in &self.0 { + v.fmt(f)?; + f.write_str(" ")?; + } + + f.write_str("]") } }