summaryrefslogtreecommitdiff
path: root/dhall/src/error/text/InvalidField.txt
blob: bfbf106d8417d6a1b878ca10a0d4d2784d4c8e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Explanation: Every record literal is a set of fields assigned to values, like
this:

    ┌────────────────────────────────────────┐
    │ { foo = 100, bar = True, baz = "ABC" } │
    └────────────────────────────────────────┘

However, fields can only be terms and cannot be types or kinds

For example, these record literals are $_NOT valid:


    ┌───────────────────────────┐
    │ { foo = 100, bar = Text } │
    └───────────────────────────┘
                         ⇧
                         ❰Text❱ is a type and not a term


    ┌───────────────────────────┐
    │ { foo = 100, bar = Type } │
    └───────────────────────────┘
                         ⇧
                         ❰Type❱ is a kind and not a term


You provided a record literal with a key named:

↳ $txt0

... whose value is:

↳ $txt1

... which is not a term