summaryrefslogtreecommitdiff
path: root/dhall_core/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_core/src/parser.rs')
-rw-r--r--dhall_core/src/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs
index 9487ebc..6809aa2 100644
--- a/dhall_core/src/parser.rs
+++ b/dhall_core/src/parser.rs
@@ -650,7 +650,7 @@ rule!(empty_collection<RcExpr>;
children!(x: str, y: expression) => {
match x {
"Optional" => bx(Expr::OptionalLit(Some(y), None)),
- "List" => bx(Expr::ListLit(Some(y), vec![])),
+ "List" => bx(Expr::EmptyListLit(y)),
_ => unreachable!(),
}
}
@@ -871,7 +871,7 @@ rule!(union_type_entry<(Label, RcExpr)>;
rule!(non_empty_list_literal_raw<RcExpr>;
children!(items*: expression) => {
- bx(Expr::ListLit(None, items.collect()))
+ bx(Expr::NEListLit(items.collect()))
}
);