diff options
| author | Nadrieril | 2019-05-07 18:12:04 +0200 |
|---|---|---|
| committer | Nadrieril | 2019-05-07 18:12:04 +0200 |
| commit | 3da450aa3fae23214aa982643b9bc4dd0ea4eaa6 (patch) | |
| tree | 02e00cd008d2e7dc899b9211379596fe792f41c8 /dhall/src/errors/InvalidAlterantive.txt | |
| parent | d8a3e831fb67f86269c4baa99f9f0798a73a7247 (diff) | |
| parent | 14dfeb8e7d2aa87a361a711a485243449426b144 (diff) | |
Merge branch 'reorganize'
Diffstat (limited to 'dhall/src/errors/InvalidAlterantive.txt')
| -rw-r--r-- | dhall/src/errors/InvalidAlterantive.txt | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/dhall/src/errors/InvalidAlterantive.txt b/dhall/src/errors/InvalidAlterantive.txt deleted file mode 100644 index 391fc3a..0000000 --- a/dhall/src/errors/InvalidAlterantive.txt +++ /dev/null @@ -1,48 +0,0 @@ -Explanation: Every union type specifies the type of each alternative, like this: - - - The type of the first alternative is ❰Bool❱ - ⇩ - ┌──────────────────────────────────┐ - │ < Left : Bool, Right : Natural > │ A union type with two alternatives - └──────────────────────────────────┘ - ⇧ - The type of the second alternative is ❰Natural❱ - - -However, these alternatives can only be annotated with types. For example, the -following union types are $_NOT valid: - - - ┌────────────────────────────┐ - │ < Left : Bool, Right : 1 > │ Invalid union type - └────────────────────────────┘ - ⇧ - This is a term and not a type - - - ┌───────────────────────────────┐ - │ < Left : Bool, Right : Type > │ Invalid union type - └───────────────────────────────┘ - ⇧ - This is a kind and not a type - - -You provided a union type with an alternative named: - -↳ $txt0 - -... annotated with the following expression which is not a type: - -↳ $txt1 - -Some common reasons why you might get this error: - -● You accidentally typed ❰:❱ instead of ❰=❱ for a union literal with one - alternative: - - ┌─────────────────┐ - │ < Example : 1 > │ - └─────────────────┘ - ⇧ - This could be ❰=❱ instead |
