summaryrefslogtreecommitdiff
path: root/testdata/typesyn.out
blob: 8462b1c634bdf28bda3032129de9b584a2cb5d20 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
main :: Bool
main = True
------------ desugared source code
'B = _lhs 'B (_rhs 'Bool)

'F = _lhs 'F \(a :: _) (b :: _) -> _rhs ' (a, b)

main = _lhs main (_rhs ((True :: B) && fst ((True, 'c') :: F Bool Char)))
------------ core code
'B :: Type
'B = _rhs 'Bool

'F :: Type -> Type -> Type
'F = \a b -> _rhs ' (a, b)

main :: Bool
main = _rhs True
------------ tooltips
3:6-3:7
    Type
3:10-3:14
    Type
5:6-5:7
    Type -> Type -> Type
5:14-5:20
    Type
5:15-5:16
    _e
5:15-5:19
    [Type]
5:18-5:19
    _c | [Type]
7:1-7:5
    Bool
7:8-7:22
    Bool -> Bool
7:8-7:55
    Bool
7:9-7:13
    Bool
7:9-7:18
    B
7:17-7:18
    Type
7:20-7:22
    Bool -> Bool -> Bool
7:23-7:26
    forall a b . (a, b) -> a
7:23-7:55
    Bool
7:28-7:39
    (Bool, Char)
7:28-7:54
    F Bool Char
7:29-7:33
    Bool
7:35-7:38
    Char | ((Char))
7:43-7:44
    Type -> Type -> Type
7:43-7:49
    Type -> Type
7:43-7:54
    Type
7:45-7:49
    Type
7:50-7:54
    Type