Fold integer-gmp.git into ghc.git (re #8545)
[ghc.git] / testsuite / tests / generics / GenDerivOutput.stderr
1
2 ==================== Derived instances ====================
3 Derived instances:
4   instance GHC.Generics.Generic (GenDerivOutput.List a) where
5     GHC.Generics.from GenDerivOutput.Nil
6       = GHC.Generics.M1
7           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
8     GHC.Generics.from (GenDerivOutput.Cons g1 g2)
9       = GHC.Generics.M1
10           (GHC.Generics.R1
11              (GHC.Generics.M1
12                 ((GHC.Generics.:*:)
13                    (GHC.Generics.M1 (GHC.Generics.K1 g1))
14                    (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
15     GHC.Generics.to
16       (GHC.Generics.M1 (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)))
17       = GenDerivOutput.Nil
18     GHC.Generics.to
19       (GHC.Generics.M1 (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 (GHC.Generics.K1 g1))
20                                                                              (GHC.Generics.M1 (GHC.Generics.K1 g2))))))
21       = GenDerivOutput.Cons g1 g2
22   
23   instance GHC.Generics.Generic1 GenDerivOutput.List where
24     GHC.Generics.from1 GenDerivOutput.Nil
25       = GHC.Generics.M1
26           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
27     GHC.Generics.from1 (GenDerivOutput.Cons g1 g2)
28       = GHC.Generics.M1
29           (GHC.Generics.R1
30              (GHC.Generics.M1
31                 ((GHC.Generics.:*:)
32                    (GHC.Generics.M1 (GHC.Generics.Par1 g1))
33                    (GHC.Generics.M1 (GHC.Generics.Rec1 g2)))))
34     GHC.Generics.to1
35       (GHC.Generics.M1 (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)))
36       = GenDerivOutput.Nil
37     GHC.Generics.to1
38       (GHC.Generics.M1 (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 g1)
39                                                                              (GHC.Generics.M1 g2)))))
40       = GenDerivOutput.Cons
41           (GHC.Generics.unPar1 g1) (GHC.Generics.unRec1 g2)
42   
43   instance GHC.Base.Functor GenDerivOutput.List where
44     GHC.Base.fmap f GenDerivOutput.Nil = GenDerivOutput.Nil
45     GHC.Base.fmap f (GenDerivOutput.Cons a1 a2)
46       = GenDerivOutput.Cons (f a1) (GHC.Base.fmap f a2)
47   
48   instance GHC.Generics.Generic (GenDerivOutput.Rose a) where
49     GHC.Generics.from GenDerivOutput.Empty
50       = GHC.Generics.M1
51           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
52     GHC.Generics.from (GenDerivOutput.Rose g1 g2)
53       = GHC.Generics.M1
54           (GHC.Generics.R1
55              (GHC.Generics.M1
56                 ((GHC.Generics.:*:)
57                    (GHC.Generics.M1 (GHC.Generics.K1 g1))
58                    (GHC.Generics.M1 (GHC.Generics.K1 g2)))))
59     GHC.Generics.to
60       (GHC.Generics.M1 (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)))
61       = GenDerivOutput.Empty
62     GHC.Generics.to
63       (GHC.Generics.M1 (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 (GHC.Generics.K1 g1))
64                                                                              (GHC.Generics.M1 (GHC.Generics.K1 g2))))))
65       = GenDerivOutput.Rose g1 g2
66   
67   instance GHC.Generics.Generic1 GenDerivOutput.Rose where
68     GHC.Generics.from1 GenDerivOutput.Empty
69       = GHC.Generics.M1
70           (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1))
71     GHC.Generics.from1 (GenDerivOutput.Rose g1 g2)
72       = GHC.Generics.M1
73           (GHC.Generics.R1
74              (GHC.Generics.M1
75                 ((GHC.Generics.:*:)
76                    (GHC.Generics.M1 (GHC.Generics.Par1 g1))
77                    (GHC.Generics.M1
78                       ((GHC.Base..)
79                          GHC.Generics.Comp1 (GHC.Base.fmap GHC.Generics.Rec1) g2)))))
80     GHC.Generics.to1
81       (GHC.Generics.M1 (GHC.Generics.L1 (GHC.Generics.M1 GHC.Generics.U1)))
82       = GenDerivOutput.Empty
83     GHC.Generics.to1
84       (GHC.Generics.M1 (GHC.Generics.R1 (GHC.Generics.M1 ((GHC.Generics.:*:) (GHC.Generics.M1 g1)
85                                                                              (GHC.Generics.M1 g2)))))
86       = GenDerivOutput.Rose
87           (GHC.Generics.unPar1 g1)
88           ((GHC.Base..)
89              (GHC.Base.fmap GHC.Generics.unRec1) GHC.Generics.unComp1 g2)
90   
91   instance GHC.Generics.Datatype GenDerivOutput.D1List where
92     GHC.Generics.datatypeName _ = "List"
93     GHC.Generics.moduleName _ = "GenDerivOutput"
94   
95   instance GHC.Generics.Constructor GenDerivOutput.C1_0List where
96     GHC.Generics.conName _ = "Nil"
97   
98   instance GHC.Generics.Constructor GenDerivOutput.C1_1List where
99     GHC.Generics.conName _ = "Cons"
100     GHC.Generics.conIsRecord _ = GHC.Types.True
101   
102   instance GHC.Generics.Selector GenDerivOutput.S1_1_0List where
103     GHC.Generics.selName _ = "element"
104   
105   instance GHC.Generics.Selector GenDerivOutput.S1_1_1List where
106     GHC.Generics.selName _ = "rest"
107   
108   instance GHC.Generics.Datatype GenDerivOutput.D1Rose where
109     GHC.Generics.datatypeName _ = "Rose"
110     GHC.Generics.moduleName _ = "GenDerivOutput"
111   
112   instance GHC.Generics.Constructor GenDerivOutput.C1_0Rose where
113     GHC.Generics.conName _ = "Empty"
114   
115   instance GHC.Generics.Constructor GenDerivOutput.C1_1Rose where
116     GHC.Generics.conName _ = "Rose"
117   
118
119 Generic representation:
120   
121   Generated datatypes for meta-information:
122     GenDerivOutput.D1List
123     GenDerivOutput.C1_0List
124     GenDerivOutput.C1_1List
125     GenDerivOutput.S1_1_0List
126     GenDerivOutput.S1_1_1List
127     GenDerivOutput.D1Rose
128     GenDerivOutput.C1_0Rose
129     GenDerivOutput.C1_1Rose
130     GenDerivOutput.S1_1_0Rose
131     GenDerivOutput.S1_1_1Rose
132   
133   Representation types:
134     type GHC.Generics.Rep (GenDerivOutput.List a) = GHC.Generics.D1
135                                                       GenDerivOutput.D1List
136                                                       (GHC.Generics.C1
137                                                          GenDerivOutput.C1_0List GHC.Generics.U1
138                                                        GHC.Generics.:+: GHC.Generics.C1
139                                                                           GenDerivOutput.C1_1List
140                                                                           (GHC.Generics.S1
141                                                                              GenDerivOutput.S1_1_0List
142                                                                              (GHC.Generics.Rec0 a)
143                                                                            GHC.Generics.:*: GHC.Generics.S1
144                                                                                               GenDerivOutput.S1_1_1List
145                                                                                               (GHC.Generics.Rec0
146                                                                                                  (GenDerivOutput.List
147                                                                                                     a))))
148     type GHC.Generics.Rep1 GenDerivOutput.List = GHC.Generics.D1
149                                                    GenDerivOutput.D1List
150                                                    (GHC.Generics.C1
151                                                       GenDerivOutput.C1_0List GHC.Generics.U1
152                                                     GHC.Generics.:+: GHC.Generics.C1
153                                                                        GenDerivOutput.C1_1List
154                                                                        (GHC.Generics.S1
155                                                                           GenDerivOutput.S1_1_0List
156                                                                           GHC.Generics.Par1
157                                                                         GHC.Generics.:*: GHC.Generics.S1
158                                                                                            GenDerivOutput.S1_1_1List
159                                                                                            (GHC.Generics.Rec1
160                                                                                               GenDerivOutput.List)))
161     type GHC.Generics.Rep (GenDerivOutput.Rose a) = GHC.Generics.D1
162                                                       GenDerivOutput.D1Rose
163                                                       (GHC.Generics.C1
164                                                          GenDerivOutput.C1_0Rose GHC.Generics.U1
165                                                        GHC.Generics.:+: GHC.Generics.C1
166                                                                           GenDerivOutput.C1_1Rose
167                                                                           (GHC.Generics.S1
168                                                                              GHC.Generics.NoSelector
169                                                                              (GHC.Generics.Rec0 a)
170                                                                            GHC.Generics.:*: GHC.Generics.S1
171                                                                                               GHC.Generics.NoSelector
172                                                                                               (GHC.Generics.Rec0
173                                                                                                  (GenDerivOutput.List
174                                                                                                     (GenDerivOutput.Rose
175                                                                                                        a)))))
176     type GHC.Generics.Rep1 GenDerivOutput.Rose = GHC.Generics.D1
177                                                    GenDerivOutput.D1Rose
178                                                    (GHC.Generics.C1
179                                                       GenDerivOutput.C1_0Rose GHC.Generics.U1
180                                                     GHC.Generics.:+: GHC.Generics.C1
181                                                                        GenDerivOutput.C1_1Rose
182                                                                        (GHC.Generics.S1
183                                                                           GHC.Generics.NoSelector
184                                                                           GHC.Generics.Par1
185                                                                         GHC.Generics.:*: GHC.Generics.S1
186                                                                                            GHC.Generics.NoSelector
187                                                                                            (GenDerivOutput.List
188                                                                                             GHC.Generics.:.: GHC.Generics.Rec1
189                                                                                                                GenDerivOutput.Rose)))
190
191