summaryrefslogtreecommitdiff
path: root/dhall/src/errors/InvalidFieldType.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/src/errors/InvalidFieldType.txt')
-rw-r--r--dhall/src/errors/InvalidFieldType.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/dhall/src/errors/InvalidFieldType.txt b/dhall/src/errors/InvalidFieldType.txt
new file mode 100644
index 0000000..4f76a64
--- /dev/null
+++ b/dhall/src/errors/InvalidFieldType.txt
@@ -0,0 +1,34 @@
+Explanation: Every record type documents the type of each field, like this:
+
+ ┌──────────────────────────────────────────────┐
+ │ { foo : Integer, bar : Integer, baz : Text } │
+ └──────────────────────────────────────────────┘
+
+However, fields cannot be annotated with expressions other than types
+
+For example, these record types are $_NOT valid:
+
+
+ ┌────────────────────────────┐
+ │ { foo : Integer, bar : 1 } │
+ └────────────────────────────┘
+ ⇧
+ ❰1❱ is an ❰Integer❱ and not a ❰Type❱
+
+
+ ┌───────────────────────────────┐
+ │ { foo : Integer, bar : Type } │
+ └───────────────────────────────┘
+ ⇧
+ ❰Type❱ is a ❰Kind❱ and not a ❰Type❱
+
+
+You provided a record type with a key named:
+
+↳ $txt0
+
+... annotated with the following expression:
+
+↳ $txt1
+
+... which is not a type