about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-instantiate/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index f63789fc4b4a..50a4991a53a8 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -53,8 +53,8 @@ static void printNixExpr(EvalState & state, Expr e)
         }
     }
 
-    if (ATgetType(e) == AT_LIST) {
-        for (ATermIterator i((ATermList) e); i; ++i)
+    if (atMatch(m, e) >> "List" >> es) {
+        for (ATermIterator i(es); i; ++i)
             printNixExpr(state, evalExpr(state, *i));
         return;
     }