Merge commit '7b0b9f603bb1215e2b7af23c2404d637b95a4988' as 'hadrian'
[ghc.git] / testsuite / tests / generics / GenDerivOutput.stderr
1
2 ==================== Derived instances ====================
3 Derived class instances:
4   instance GHC.Generics.Generic (GenDerivOutput.List a) where
5     GHC.Generics.from x
6       = GHC.Generics.M1
7           (case x of
8              GenDerivOutput.Nil
9                -> GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)
10              GenDerivOutput.Cons g1 g2
11                -> GHC.Generics.R1
12                     (GHC.Generics.M1
13                        ((GHC.Generics.:*:)
14                           (GHC.Generics.M1 (GHC.Generics.K1 g1))
15                           (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
16     GHC.Generics.to (GHC.Generics.M1 x)
17       = case x of
18           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
19             -> GenDerivOutput.Nil
20           (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 (GHC.Generics.K1 g1))
21                                                                 (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
22             -> GenDerivOutput.Cons g1 g2
23   
24   instance GHC.Generics.Generic1 GenDerivOutput.List where
25     GHC.Generics.from1 x
26       = GHC.Generics.M1
27           (case x of
28              GenDerivOutput.Nil
29                -> GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)
30              GenDerivOutput.Cons g1 g2
31                -> GHC.Generics.R1
32                     (GHC.Generics.M1
33                        ((GHC.Generics.:*:)
34                           (GHC.Generics.M1 (GHC.Generics.Par1 g1))
35                           (GHC.Generics.M1 (GHC.Generics.Rec1 g2)))))
36     GHC.Generics.to1 (GHC.Generics.M1 x)
37       = case x of
38           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
39             -> GenDerivOutput.Nil
40           (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 g1)
41                                                                 (GHC.Generics.M1 g2))))
42             -> GenDerivOutput.Cons
43                  (GHC.Generics.unPar1 g1) (GHC.Generics.unRec1 g2)
44   
45   instance GHC.Base.Functor GenDerivOutput.List where
46     GHC.Base.fmap f GenDerivOutput.Nil = GenDerivOutput.Nil
47     GHC.Base.fmap f (GenDerivOutput.Cons a1 a2)
48       = GenDerivOutput.Cons (f a1) (GHC.Base.fmap f a2)
49     (GHC.Base.<$) z GenDerivOutput.Nil = GenDerivOutput.Nil
50     (GHC.Base.<$) z (GenDerivOutput.Cons a1 a2)
51       = GenDerivOutput.Cons ((\ b1 -> z) a1) ((GHC.Base.<$) z a2)
52   
53   instance GHC.Generics.Generic (GenDerivOutput.Rose a) where
54     GHC.Generics.from x
55       = GHC.Generics.M1
56           (case x of
57              GenDerivOutput.Empty
58                -> GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)
59              GenDerivOutput.Rose g1 g2
60                -> GHC.Generics.R1
61                     (GHC.Generics.M1
62                        ((GHC.Generics.:*:)
63                           (GHC.Generics.M1 (GHC.Generics.K1 g1))
64                           (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
65     GHC.Generics.to (GHC.Generics.M1 x)
66       = case x of
67           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
68             -> GenDerivOutput.Empty
69           (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 (GHC.Generics.K1 g1))
70                                                                 (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
71             -> GenDerivOutput.Rose g1 g2
72   
73   instance GHC.Generics.Generic1 GenDerivOutput.Rose where
74     GHC.Generics.from1 x
75       = GHC.Generics.M1
76           (case x of
77              GenDerivOutput.Empty
78                -> GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)
79              GenDerivOutput.Rose g1 g2
80                -> GHC.Generics.R1
81                     (GHC.Generics.M1
82                        ((GHC.Generics.:*:)
83                           (GHC.Generics.M1 (GHC.Generics.Par1 g1))
84                           (GHC.Generics.M1
85                              ((GHC.Base..)
86                                 GHC.Generics.Comp1 (GHC.Base.fmap GHC.Generics.Rec1) g2)))))
87     GHC.Generics.to1 (GHC.Generics.M1 x)
88       = case x of
89           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
90             -> GenDerivOutput.Empty
91           (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 g1)
92                                                                 (GHC.Generics.M1 g2))))
93             -> GenDerivOutput.Rose
94                  (GHC.Generics.unPar1 g1)
95                  ((GHC.Base..)
96                     (GHC.Base.fmap GHC.Generics.unRec1) GHC.Generics.unComp1 g2)
97   
98
99 Derived type family instances:
100   type GHC.Generics.Rep (GenDerivOutput.List a) = GHC.Generics.D1
101                                                     ('GHC.Generics.MetaData
102                                                        "List"
103                                                        "GenDerivOutput"
104                                                        "main"
105                                                        'GHC.Types.False)
106                                                     (GHC.Generics.C1
107                                                        ('GHC.Generics.MetaCons
108                                                           "Nil"
109                                                           'GHC.Generics.PrefixI
110                                                           'GHC.Types.False)
111                                                        GHC.Generics.U1
112                                                      GHC.Generics.:+: GHC.Generics.C1
113                                                                         ('GHC.Generics.MetaCons
114                                                                            "Cons"
115                                                                            'GHC.Generics.PrefixI
116                                                                            'GHC.Types.True)
117                                                                         (GHC.Generics.S1
118                                                                            ('GHC.Generics.MetaSel
119                                                                               ('GHC.Base.Just
120                                                                                  "element")
121                                                                               'GHC.Generics.NoSourceUnpackedness
122                                                                               'GHC.Generics.NoSourceStrictness
123                                                                               'GHC.Generics.DecidedLazy)
124                                                                            (GHC.Generics.Rec0 a)
125                                                                          GHC.Generics.:*: GHC.Generics.S1
126                                                                                             ('GHC.Generics.MetaSel
127                                                                                                ('GHC.Base.Just
128                                                                                                   "rest")
129                                                                                                'GHC.Generics.NoSourceUnpackedness
130                                                                                                'GHC.Generics.NoSourceStrictness
131                                                                                                'GHC.Generics.DecidedLazy)
132                                                                                             (GHC.Generics.Rec0
133                                                                                                (GenDerivOutput.List
134                                                                                                   a))))
135   type GHC.Generics.Rep1 GenDerivOutput.List = GHC.Generics.D1
136                                                  ('GHC.Generics.MetaData
137                                                     "List" "GenDerivOutput" "main" 'GHC.Types.False)
138                                                  (GHC.Generics.C1
139                                                     ('GHC.Generics.MetaCons
140                                                        "Nil" 'GHC.Generics.PrefixI 'GHC.Types.False)
141                                                     GHC.Generics.U1
142                                                   GHC.Generics.:+: GHC.Generics.C1
143                                                                      ('GHC.Generics.MetaCons
144                                                                         "Cons"
145                                                                         'GHC.Generics.PrefixI
146                                                                         'GHC.Types.True)
147                                                                      (GHC.Generics.S1
148                                                                         ('GHC.Generics.MetaSel
149                                                                            ('GHC.Base.Just
150                                                                               "element")
151                                                                            'GHC.Generics.NoSourceUnpackedness
152                                                                            'GHC.Generics.NoSourceStrictness
153                                                                            'GHC.Generics.DecidedLazy)
154                                                                         GHC.Generics.Par1
155                                                                       GHC.Generics.:*: GHC.Generics.S1
156                                                                                          ('GHC.Generics.MetaSel
157                                                                                             ('GHC.Base.Just
158                                                                                                "rest")
159                                                                                             'GHC.Generics.NoSourceUnpackedness
160                                                                                             'GHC.Generics.NoSourceStrictness
161                                                                                             'GHC.Generics.DecidedLazy)
162                                                                                          (GHC.Generics.Rec1
163                                                                                             GenDerivOutput.List)))
164   type GHC.Generics.Rep (GenDerivOutput.Rose a) = GHC.Generics.D1
165                                                     ('GHC.Generics.MetaData
166                                                        "Rose"
167                                                        "GenDerivOutput"
168                                                        "main"
169                                                        'GHC.Types.False)
170                                                     (GHC.Generics.C1
171                                                        ('GHC.Generics.MetaCons
172                                                           "Empty"
173                                                           'GHC.Generics.PrefixI
174                                                           'GHC.Types.False)
175                                                        GHC.Generics.U1
176                                                      GHC.Generics.:+: GHC.Generics.C1
177                                                                         ('GHC.Generics.MetaCons
178                                                                            "Rose"
179                                                                            'GHC.Generics.PrefixI
180                                                                            'GHC.Types.False)
181                                                                         (GHC.Generics.S1
182                                                                            ('GHC.Generics.MetaSel
183                                                                               'GHC.Base.Nothing
184                                                                               'GHC.Generics.NoSourceUnpackedness
185                                                                               'GHC.Generics.NoSourceStrictness
186                                                                               'GHC.Generics.DecidedLazy)
187                                                                            (GHC.Generics.Rec0 a)
188                                                                          GHC.Generics.:*: GHC.Generics.S1
189                                                                                             ('GHC.Generics.MetaSel
190                                                                                                'GHC.Base.Nothing
191                                                                                                'GHC.Generics.NoSourceUnpackedness
192                                                                                                'GHC.Generics.NoSourceStrictness
193                                                                                                'GHC.Generics.DecidedLazy)
194                                                                                             (GHC.Generics.Rec0
195                                                                                                (GenDerivOutput.List
196                                                                                                   (GenDerivOutput.Rose
197                                                                                                      a)))))
198   type GHC.Generics.Rep1 GenDerivOutput.Rose = GHC.Generics.D1
199                                                  ('GHC.Generics.MetaData
200                                                     "Rose" "GenDerivOutput" "main" 'GHC.Types.False)
201                                                  (GHC.Generics.C1
202                                                     ('GHC.Generics.MetaCons
203                                                        "Empty"
204                                                        'GHC.Generics.PrefixI
205                                                        'GHC.Types.False)
206                                                     GHC.Generics.U1
207                                                   GHC.Generics.:+: GHC.Generics.C1
208                                                                      ('GHC.Generics.MetaCons
209                                                                         "Rose"
210                                                                         'GHC.Generics.PrefixI
211                                                                         'GHC.Types.False)
212                                                                      (GHC.Generics.S1
213                                                                         ('GHC.Generics.MetaSel
214                                                                            'GHC.Base.Nothing
215                                                                            'GHC.Generics.NoSourceUnpackedness
216                                                                            'GHC.Generics.NoSourceStrictness
217                                                                            'GHC.Generics.DecidedLazy)
218                                                                         GHC.Generics.Par1
219                                                                       GHC.Generics.:*: GHC.Generics.S1
220                                                                                          ('GHC.Generics.MetaSel
221                                                                                             'GHC.Base.Nothing
222                                                                                             'GHC.Generics.NoSourceUnpackedness
223                                                                                             'GHC.Generics.NoSourceStrictness
224                                                                                             'GHC.Generics.DecidedLazy)
225                                                                                          (GenDerivOutput.List
226                                                                                           GHC.Generics.:.: GHC.Generics.Rec1
227                                                                                                              GenDerivOutput.Rose)))
228
229