summaryrefslogtreecommitdiff
path: root/src/errors/InvalidFieldType.txt
diff options
context:
space:
mode:
authorNanoTech2016-12-11 23:27:36 -0600
committerNanoTech2017-03-10 23:48:29 -0600
commit5c00b978b0bc0c1eeb64682cba6aa338fea320bf (patch)
treed9935794062180474b5bd6a51ab1d5f4bd864a4e /src/errors/InvalidFieldType.txt
parentefd52ef33c15316dbd39390d55022708488a53b8 (diff)
Start implementing error explanations
Diffstat (limited to '')
-rw-r--r--src/errors/InvalidFieldType.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/errors/InvalidFieldType.txt b/src/errors/InvalidFieldType.txt
new file mode 100644
index 0000000..4f76a64
--- /dev/null
+++ b/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