summaryrefslogtreecommitdiff
path: root/src/errors/CantTextAppend.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/CantTextAppend.txt
parentefd52ef33c15316dbd39390d55022708488a53b8 (diff)
Start implementing error explanations
Diffstat (limited to 'src/errors/CantTextAppend.txt')
-rw-r--r--src/errors/CantTextAppend.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/errors/CantTextAppend.txt b/src/errors/CantTextAppend.txt
new file mode 100644
index 0000000..26b9ceb
--- /dev/null
+++ b/src/errors/CantTextAppend.txt
@@ -0,0 +1,28 @@
+Explanation: The ❰++❱ operator expects two arguments that have type ❰Text❱
+
+For example, this is a valid use of ❰++❱:
+
+
+ ┌────────────────┐
+ │ "ABC" ++ "DEF" │
+ └────────────────┘
+
+
+You provided this argument:
+
+↳ $txt0
+
+... which does not have type ❰Text❱ but instead has type:
+
+↳ $txt1
+
+Some common reasons why you might get this error:
+
+● You might have thought that ❰++❱ was the operator to combine two lists:
+
+ ┌───────────────────────────────────────────────────────────┐
+ │ ([1, 2, 3] : List Integer) ++ ([4, 5, 6] : List Integer ) │ Not valid
+ └───────────────────────────────────────────────────────────┘
+
+ The Dhall programming language does not provide a built-in operator for
+ combining two lists