summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T16804.stdout
blob: a02f32e7844c9ab179a0a30bc4ec7a613cbc2984 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
Collecting type info for 2 module(s) ... 
1 module T16804a where
  1234567890
            1234567890
                      1234567890
                                1234567890
input: :type-at T16804a.hs  1  8  1 14 undefined
undefined :: forall a. a
input: :uses T16804a.hs  1  8  1 14
2
3 import Data.Monoid
  1234567890
            1234567890
                      1234567890
                                1234567890
input: :type-at T16804a.hs  3  8  3 11 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  3  8  3 18 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  3 13  3 18 undefined
undefined :: forall a. a
input: :uses T16804a.hs  3  8  3 11
input: :uses T16804a.hs  3  8  3 18
input: :uses T16804a.hs  3 13  3 18
4
5 data Test = A | B
6   deriving (Show)
  1234567890
            1234567890
                      1234567890
                                1234567890
input: :type-at T16804a.hs  5  6  5  9 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  5 13  5 13 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  5 15  5 15 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  5 17  5 17 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  6 13  6 16 undefined
undefined :: [Test] -> ShowS
input: :uses T16804a.hs  5  6  5  9
input: :uses T16804a.hs  5 13  5 13
input: :uses T16804a.hs  5 15  5 15
input: :uses T16804a.hs  5 17  5 17
input: :uses T16804a.hs  6 13  6 16
T16804a.hs:(6,13)-(6,16)
T16804a.hs:(6,13)-(6,16)
7 instance Monoid Test where
8   mempty = A
9   -- gone
10   -- gone
  1234567890
            1234567890
                      1234567890
                                1234567890
input: :type-at T16804a.hs  7 10  7 15 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  7 17  7 20 undefined
undefined :: forall a. a
input: :type-at T16804a.hs  7 10  7 20 undefined
undefined :: [Test] -> Test
input: :type-at T16804a.hs  8  3  8  8 undefined
undefined :: Test
input: :type-at T16804a.hs  8 12  8 12 undefined
undefined :: Test
input: :uses T16804a.hs  7 10  7 15
input: :uses T16804a.hs  7 17  7 20
input: :uses T16804a.hs  7 10  7 20
T16804a.hs:(7,10)-(7,20)
T16804a.hs:(7,10)-(7,20)
input: :uses T16804a.hs  8  3  8  8
T16804a.hs:(8,3)-(8,8)
T16804a.hs:(8,3)-(8,8)
input: :uses T16804a.hs  8 12  8 12
11
12 testFunction :: Test -> Test -> Bool
13 testFunction A B = True
14 testFunction B A = True
15 testFunction _ _ = False
   1234567890
             1234567890
                       1234567890
                                 1234567890
input: :type-at T16804a.hs 12  1 12 12 undefined
undefined :: forall a. a
input: :type-at T16804a.hs 13  1 13 12 undefined
undefined :: Test -> Test -> Bool
input: :type-at T16804a.hs 13 14 13 14 undefined
undefined :: Test
input: :type-at T16804a.hs 13 16 13 16 undefined
undefined :: Test
input: :type-at T16804a.hs 15 16 15 16 undefined
undefined :: Test
input: :type-at T16804a.hs 15 20 15 24 undefined
undefined :: Bool
input: :uses T16804a.hs 12  1 12 12
input: :uses T16804a.hs 13  1 13 12
T16804a.hs:(13,1)-(13,12)
T16804a.hs:(13,1)-(13,12)
input: :uses T16804a.hs 13 14 13 14
input: :uses T16804a.hs 13 16 13 16
input: :uses T16804a.hs 15 16 15 16
input: :uses T16804a.hs 15 20 15 24
16
17 testFunction2 :: Bool -> Test
18 testFunction2 True = A
19 testFunction2 False = B
   1234567890
             1234567890
                       1234567890
                                 1234567890
input: :type-at T16804a.hs 18 15 18 18 undefined
undefined :: Bool
input: :type-at T16804a.hs 18 22 18 22 undefined
undefined :: Test
input: :uses T16804a.hs 18 15 18 18
input: :uses T16804a.hs 18 22 18 22
20
21 niceValue :: Int
22 niceValue = getSum (Sum 1 <> Sum 2 <> mempty)
   1234567890
             1234567890
                       1234567890
                                 1234567890
input: :type-at T16804a.hs 22 13 22 18 undefined
undefined :: Sum Int -> Int
input: :type-at T16804a.hs 22 21 22 23 undefined
undefined :: Int -> Sum Int
input: :type-at T16804a.hs 22 25 22 25 undefined
undefined :: Int
input: :type-at T16804a.hs 22 21 22 25 undefined
undefined :: Sum Int
input: :type-at T16804a.hs 22 27 22 28 undefined
undefined :: Sum Int -> Sum Int -> Sum Int
input: :uses T16804a.hs 22 13 22 18
input: :uses T16804a.hs 22 21 22 23
input: :uses T16804a.hs 22 25 22 25
input: :uses T16804a.hs 22 21 22 25
input: :uses T16804a.hs 22 27 22 28
23
24 niceValue2 :: Test
25 niceValue2 = A <> A <> A <> B <> A <> mempty
   1234567890
             1234567890
                       1234567890
                                 1234567890
input: :type-at T16804a.hs 25 14 25 14 undefined
undefined :: Test
input: :type-at T16804a.hs 25 16 25 17 undefined
undefined :: Test -> Test -> Test
input: :type-at T16804a.hs 25 39 25 44 undefined
undefined :: Test
input: :uses T16804a.hs 25 14 25 14
input: :uses T16804a.hs 25 16 25 17
input: :uses T16804a.hs 25 39 25 44
26
27 instance Semigroup Test where
28   A <> val = val
29   B <> _   = B
   1234567890
             1234567890
                       1234567890
                                 1234567890
input: :type-at T16804a.hs 28  3 28  3 undefined
undefined :: Test
input: :type-at T16804a.hs 28  5 28  6 undefined
undefined :: Test -> Test -> Test
input: :type-at T16804a.hs 28  8 28 10 undefined
undefined :: Test
input: :type-at T16804a.hs 28 14 28 16 undefined
undefined :: Test
input: :type-at T16804a.hs 29  3 29  3 undefined
undefined :: Test
input: :type-at T16804a.hs 29  5 29  6 undefined
undefined :: forall a. a
input: :type-at T16804a.hs 29  8 29  8 undefined
undefined :: Test
input: :type-at T16804a.hs 29 14 29 14 undefined
undefined :: Test
input: :uses T16804a.hs 28  3 28  3
input: :uses T16804a.hs 28  5 28  6
T16804a.hs:(28,5)-(28,6)
T16804a.hs:(28,5)-(28,6)
input: :uses T16804a.hs 28  8 28 10
T16804a.hs:(28,8)-(28,10)
T16804a.hs:(28,14)-(28,16)
T16804a.hs:(28,8)-(28,10)
input: :uses T16804a.hs 28 14 28 16
T16804a.hs:(28,8)-(28,10)
T16804a.hs:(28,14)-(28,16)
T16804a.hs:(28,8)-(28,10)
input: :uses T16804a.hs 29  3 29  3
input: :uses T16804a.hs 29  5 29  6
input: :uses T16804a.hs 29  8 29  8
input: :uses T16804a.hs 29 14 29 14