summaryrefslogtreecommitdiff
path: root/dhall/src/errors/NoDependentTypes.txt
diff options
context:
space:
mode:
authorNadrieril2019-05-06 23:17:26 +0200
committerNadrieril2019-05-06 23:20:47 +0200
commit60129b7d1c0ea8bdf2ec666fa51957e97465e88f (patch)
tree2118155537989a1a3bfa6c51b5c476651a0ef93e /dhall/src/errors/NoDependentTypes.txt
parent423fdeebe9247b16744fae4b50df415bbd08be04 (diff)
Consolidate errors in the error module
Diffstat (limited to 'dhall/src/errors/NoDependentTypes.txt')
-rw-r--r--dhall/src/errors/NoDependentTypes.txt31
1 files changed, 0 insertions, 31 deletions
diff --git a/dhall/src/errors/NoDependentTypes.txt b/dhall/src/errors/NoDependentTypes.txt
deleted file mode 100644
index 435bdcb..0000000
--- a/dhall/src/errors/NoDependentTypes.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Explanation: The Dhall programming language does not allow functions from terms
-to types. These function types are also known as "dependent function types"
-because you have a type whose value "depends" on the value of a term.
-
-For example, this is $_NOT a legal function type:
-
-
- ┌─────────────┐
- │ Bool → Type │
- └─────────────┘
-
-
-Similarly, this is $_NOT legal code:
-
-
- ┌────────────────────────────────────────────────────┐
- │ λ(Vector : Natural → Type → Type) → Vector +0 Text │
- └────────────────────────────────────────────────────┘
- ⇧
- Invalid dependent type
-
-
-Your function type is invalid because the input has type:
-
-↳ $txt0
-
-... and the output has kind:
-
-↳ $txt1
-
-... which makes this a forbidden dependent function type