summaryrefslogtreecommitdiff
path: root/dhall/src/error/text/InvalidField.txt
diff options
context:
space:
mode:
authorNadrieril2019-05-07 18:12:04 +0200
committerNadrieril2019-05-07 18:12:04 +0200
commit3da450aa3fae23214aa982643b9bc4dd0ea4eaa6 (patch)
tree02e00cd008d2e7dc899b9211379596fe792f41c8 /dhall/src/error/text/InvalidField.txt
parentd8a3e831fb67f86269c4baa99f9f0798a73a7247 (diff)
parent14dfeb8e7d2aa87a361a711a485243449426b144 (diff)
Merge branch 'reorganize'
Diffstat (limited to 'dhall/src/error/text/InvalidField.txt')
-rw-r--r--dhall/src/error/text/InvalidField.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/dhall/src/error/text/InvalidField.txt b/dhall/src/error/text/InvalidField.txt
new file mode 100644
index 0000000..bfbf106
--- /dev/null
+++ b/dhall/src/error/text/InvalidField.txt
@@ -0,0 +1,35 @@
+Explanation: Every record literal is a set of fields assigned to values, like
+this:
+
+ ┌────────────────────────────────────────┐
+ │ { foo = 100, bar = True, baz = "ABC" } │
+ └────────────────────────────────────────┘
+
+However, fields can only be terms and cannot be types or kinds
+
+For example, these record literals are $_NOT valid:
+
+
+ ┌───────────────────────────┐
+ │ { foo = 100, bar = Text } │
+ └───────────────────────────┘
+ ⇧
+ ❰Text❱ is a type and not a term
+
+
+ ┌───────────────────────────┐
+ │ { foo = 100, bar = Type } │
+ └───────────────────────────┘
+ ⇧
+ ❰Type❱ is a kind and not a term
+
+
+You provided a record literal with a key named:
+
+↳ $txt0
+
+... whose value is:
+
+↳ $txt1
+
+... which is not a term