diff --git a/dhall/src/Dhall/Syntax.hs b/dhall/src/Dhall/Syntax.hs index 4cac130..d457b72 100644 --- a/dhall/src/Dhall/Syntax.hs +++ b/dhall/src/Dhall/Syntax.hs @@ -1146,23 +1146,24 @@ shallowDenote e = e reservedIdentifiers :: HashSet Text reservedIdentifiers = Data.HashSet.fromList - [ "let" - , "in" - , "Type" - , "Kind" - , "Sort" - , "forall" - , "Bool" - , "True" - , "False" - , "merge" - , "toMap" - , "if" + [ -- Keywords according to the `keyword` rule in the grammar + "if" , "then" , "else" - , "as" + , "let" + , "in" , "using" - , "Natural" + , "missing" + , "as" + , "Infinity" + , "NaN" + , "merge" + , "Some" + , "toMap" + , "assert" + , "forall" + + -- Builtins according to the `builtin` rule in the grammar , "Natural/fold" , "Natural/build" , "Natural/isZero" @@ -1176,11 +1177,9 @@ reservedIdentifiers = , "Integer/negate" , "Integer/show" , "Integer/toDouble" - , "Double" + , "Integer/show" + , "Natural/subtract" , "Double/show" - , "Text" - , "Text/show" - , "List" , "List/build" , "List/fold" , "List/length" @@ -1188,11 +1187,20 @@ reservedIdentifiers = , "List/last" , "List/indexed" , "List/reverse" - , "Optional" - , "Some" - , "None" - , "Optional/build" , "Optional/fold" - , "NaN" - , "Infinity" + , "Optional/build" + , "Text/show" + , "Bool" + , "True" + , "False" + , "Optional" + , "None" + , "Natural" + , "Integer" + , "Double" + , "Text" + , "List" + , "Type" + , "Kind" + , "Sort" ]