blob: 6dc5080a495d8e3db04cd019e16d6ee3e1fa0e85 (
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
testdata/typesyn.lc 3:6-3:7
Type
testdata/typesyn.lc 3:10-3:14
Type
testdata/typesyn.lc 5:6-5:7
Type -> Type -> Type
testdata/typesyn.lc 5:14-5:20
Type
testdata/typesyn.lc 5:15-5:16
_e
testdata/typesyn.lc 5:15-5:19
[Type]
testdata/typesyn.lc 5:18-5:19
_c | [Type]
testdata/typesyn.lc 7:1-7:5
Bool
testdata/typesyn.lc 7:8-7:22
Bool -> Bool
testdata/typesyn.lc 7:8-7:55
Bool
testdata/typesyn.lc 7:9-7:13
Bool
testdata/typesyn.lc 7:9-7:18
B
testdata/typesyn.lc 7:17-7:18
Type
testdata/typesyn.lc 7:20-7:22
Bool -> Bool -> Bool
testdata/typesyn.lc 7:23-7:26
forall a b . (a, b) -> a
testdata/typesyn.lc 7:23-7:55
Bool
testdata/typesyn.lc 7:28-7:39
(Bool, Char)
testdata/typesyn.lc 7:28-7:54
F Bool Char
testdata/typesyn.lc 7:29-7:33
Bool
testdata/typesyn.lc 7:35-7:38
Char | ((Char))
testdata/typesyn.lc 7:43-7:44
Type -> Type -> Type
testdata/typesyn.lc 7:43-7:49
Type -> Type
testdata/typesyn.lc 7:43-7:54
Type
testdata/typesyn.lc 7:45-7:49
Type
testdata/typesyn.lc 7:50-7:54
Type
|