Add migration guide for #9718 (#10578)
[cabal.git] / Cabal-tests / tests / ParserTests / regressions / issue-6083-a.expr
blobbbe56f81a5c1997193b0e4da4ad8cd002ec21432
1 GenericPackageDescription {
2   packageDescription =
3   PackageDescription {
4     specVersion = CabalSpecV3_4,
5     package = PackageIdentifier {
6       pkgName = PackageName "issue",
7       pkgVersion = mkVersion [6083]},
8     licenseRaw = Left NONE,
9     licenseFiles = [],
10     copyright = "",
11     maintainer = "",
12     author = "",
13     stability = "",
14     testedWith = [],
15     homepage = "",
16     pkgUrl = "",
17     bugReports = "",
18     sourceRepos = [],
19     synopsis = "",
20     description = "",
21     category = "",
22     customFieldsPD = [],
23     buildTypeRaw = Nothing,
24     setupBuildInfo = Nothing,
25     library = Nothing,
26     subLibraries = [],
27     executables = [],
28     foreignLibs = [],
29     testSuites = [],
30     benchmarks = [],
31     dataFiles = [],
32     dataDir = SymbolicPath ".",
33     extraSrcFiles = [],
34     extraTmpFiles = [],
35     extraDocFiles = [],
36     extraFiles = []},
37   gpdScannedVersion = Nothing,
38   genPackageFlags = [],
39   condLibrary = Just
40     CondNode {
41       condTreeData = Library {
42         libName = LMainLibName,
43         exposedModules = [],
44         reexportedModules = [],
45         signatures = [],
46         libExposed = True,
47         libVisibility =
48         LibraryVisibilityPublic,
49         libBuildInfo = BuildInfo {
50           buildable = True,
51           buildTools = [],
52           buildToolDepends = [],
53           cppOptions = [],
54           asmOptions = [],
55           cmmOptions = [],
56           ccOptions = [],
57           cxxOptions = [],
58           ldOptions = [],
59           hsc2hsOptions = [],
60           pkgconfigDepends = [],
61           frameworks = [],
62           extraFrameworkDirs = [],
63           asmSources = [],
64           cmmSources = [],
65           cSources = [],
66           cxxSources = [],
67           jsSources = [],
68           hsSourceDirs = [],
69           otherModules = [],
70           virtualModules = [],
71           autogenModules = [],
72           defaultLanguage = Just
73             Haskell2010,
74           otherLanguages = [],
75           defaultExtensions = [],
76           otherExtensions = [],
77           oldExtensions = [],
78           extraLibs = [],
79           extraLibsStatic = [],
80           extraGHCiLibs = [],
81           extraBundledLibs = [],
82           extraLibFlavours = [],
83           extraDynLibFlavours = [],
84           extraLibDirs = [],
85           extraLibDirsStatic = [],
86           includeDirs = [],
87           includes = [],
88           autogenIncludes = [],
89           installIncludes = [],
90           options = PerCompilerFlavor
91             []
92             [],
93           profOptions = PerCompilerFlavor
94             []
95             [],
96           sharedOptions =
97           PerCompilerFlavor [] [],
98           profSharedOptions =
99           PerCompilerFlavor [] [],
100           staticOptions =
101           PerCompilerFlavor [] [],
102           customFieldsBI = [],
103           targetBuildDepends = [
104             Dependency
105               (PackageName "base")
106               (OrLaterVersion (mkVersion [0]))
107               mainLibSet,
108             Dependency
109               (PackageName "issue")
110               (OrLaterVersion (mkVersion [0]))
111               (NonEmptySet.fromNonEmpty
112                 (NE.fromList
113                   [
114                     LSubLibName
115                       (UnqualComponentName
116                         "sublib")]))],
117           mixins = []}},
118       condTreeConstraints = [
119         Dependency
120           (PackageName "base")
121           (OrLaterVersion (mkVersion [0]))
122           mainLibSet,
123         Dependency
124           (PackageName "issue")
125           (OrLaterVersion (mkVersion [0]))
126           (NonEmptySet.fromNonEmpty
127             (NE.fromList
128               [
129                 LSubLibName
130                   (UnqualComponentName
131                     "sublib")]))],
132       condTreeComponents = []},
133   condSubLibraries = [
134     _×_
135       (UnqualComponentName "sublib")
136       CondNode {
137         condTreeData = Library {
138           libName = LSubLibName
139             (UnqualComponentName "sublib"),
140           exposedModules = [],
141           reexportedModules = [],
142           signatures = [],
143           libExposed = True,
144           libVisibility =
145           LibraryVisibilityPrivate,
146           libBuildInfo = BuildInfo {
147             buildable = True,
148             buildTools = [],
149             buildToolDepends = [],
150             cppOptions = [],
151             asmOptions = [],
152             cmmOptions = [],
153             ccOptions = [],
154             cxxOptions = [],
155             ldOptions = [],
156             hsc2hsOptions = [],
157             pkgconfigDepends = [],
158             frameworks = [],
159             extraFrameworkDirs = [],
160             asmSources = [],
161             cmmSources = [],
162             cSources = [],
163             cxxSources = [],
164             jsSources = [],
165             hsSourceDirs = [],
166             otherModules = [],
167             virtualModules = [],
168             autogenModules = [],
169             defaultLanguage = Just
170               Haskell2010,
171             otherLanguages = [],
172             defaultExtensions = [],
173             otherExtensions = [],
174             oldExtensions = [],
175             extraLibs = [],
176             extraLibsStatic = [],
177             extraGHCiLibs = [],
178             extraBundledLibs = [],
179             extraLibFlavours = [],
180             extraDynLibFlavours = [],
181             extraLibDirs = [],
182             extraLibDirsStatic = [],
183             includeDirs = [],
184             includes = [],
185             autogenIncludes = [],
186             installIncludes = [],
187             options = PerCompilerFlavor
188               []
189               [],
190             profOptions = PerCompilerFlavor
191               []
192               [],
193             sharedOptions =
194             PerCompilerFlavor [] [],
195             profSharedOptions =
196             PerCompilerFlavor [] [],
197             staticOptions =
198             PerCompilerFlavor [] [],
199             customFieldsBI = [],
200             targetBuildDepends = [],
201             mixins = []}},
202         condTreeConstraints = [],
203         condTreeComponents = []}],
204   condForeignLibs = [],
205   condExecutables = [
206     _×_
207       (UnqualComponentName "demo-a")
208       CondNode {
209         condTreeData = Executable {
210           exeName = UnqualComponentName
211             "demo-a",
212           modulePath = SymbolicPath
213             "Main.hs",
214           exeScope = ExecutablePublic,
215           buildInfo = BuildInfo {
216             buildable = True,
217             buildTools = [],
218             buildToolDepends = [],
219             cppOptions = [],
220             asmOptions = [],
221             cmmOptions = [],
222             ccOptions = [],
223             cxxOptions = [],
224             ldOptions = [],
225             hsc2hsOptions = [],
226             pkgconfigDepends = [],
227             frameworks = [],
228             extraFrameworkDirs = [],
229             asmSources = [],
230             cmmSources = [],
231             cSources = [],
232             cxxSources = [],
233             jsSources = [],
234             hsSourceDirs = [],
235             otherModules = [],
236             virtualModules = [],
237             autogenModules = [],
238             defaultLanguage = Nothing,
239             otherLanguages = [],
240             defaultExtensions = [],
241             otherExtensions = [],
242             oldExtensions = [],
243             extraLibs = [],
244             extraLibsStatic = [],
245             extraGHCiLibs = [],
246             extraBundledLibs = [],
247             extraLibFlavours = [],
248             extraDynLibFlavours = [],
249             extraLibDirs = [],
250             extraLibDirsStatic = [],
251             includeDirs = [],
252             includes = [],
253             autogenIncludes = [],
254             installIncludes = [],
255             options = PerCompilerFlavor
256               []
257               [],
258             profOptions = PerCompilerFlavor
259               []
260               [],
261             sharedOptions =
262             PerCompilerFlavor [] [],
263             profSharedOptions =
264             PerCompilerFlavor [] [],
265             staticOptions =
266             PerCompilerFlavor [] [],
267             customFieldsBI = [],
268             targetBuildDepends = [
269               Dependency
270                 (PackageName "issue")
271                 (OrLaterVersion (mkVersion [0]))
272                 mainLibSet,
273               Dependency
274                 (PackageName "sublib")
275                 (OrLaterVersion (mkVersion [0]))
276                 mainLibSet],
277             mixins = []}},
278         condTreeConstraints = [
279           Dependency
280             (PackageName "issue")
281             (OrLaterVersion (mkVersion [0]))
282             mainLibSet,
283           Dependency
284             (PackageName "sublib")
285             (OrLaterVersion (mkVersion [0]))
286             mainLibSet],
287         condTreeComponents = []},
288     _×_
289       (UnqualComponentName "demo-b")
290       CondNode {
291         condTreeData = Executable {
292           exeName = UnqualComponentName
293             "demo-b",
294           modulePath = SymbolicPath
295             "Main.hs",
296           exeScope = ExecutablePublic,
297           buildInfo = BuildInfo {
298             buildable = True,
299             buildTools = [],
300             buildToolDepends = [],
301             cppOptions = [],
302             asmOptions = [],
303             cmmOptions = [],
304             ccOptions = [],
305             cxxOptions = [],
306             ldOptions = [],
307             hsc2hsOptions = [],
308             pkgconfigDepends = [],
309             frameworks = [],
310             extraFrameworkDirs = [],
311             asmSources = [],
312             cmmSources = [],
313             cSources = [],
314             cxxSources = [],
315             jsSources = [],
316             hsSourceDirs = [],
317             otherModules = [],
318             virtualModules = [],
319             autogenModules = [],
320             defaultLanguage = Nothing,
321             otherLanguages = [],
322             defaultExtensions = [],
323             otherExtensions = [],
324             oldExtensions = [],
325             extraLibs = [],
326             extraLibsStatic = [],
327             extraGHCiLibs = [],
328             extraBundledLibs = [],
329             extraLibFlavours = [],
330             extraDynLibFlavours = [],
331             extraLibDirs = [],
332             extraLibDirsStatic = [],
333             includeDirs = [],
334             includes = [],
335             autogenIncludes = [],
336             installIncludes = [],
337             options = PerCompilerFlavor
338               []
339               [],
340             profOptions = PerCompilerFlavor
341               []
342               [],
343             sharedOptions =
344             PerCompilerFlavor [] [],
345             profSharedOptions =
346             PerCompilerFlavor [] [],
347             staticOptions =
348             PerCompilerFlavor [] [],
349             customFieldsBI = [],
350             targetBuildDepends = [
351               Dependency
352                 (PackageName "issue")
353                 (OrLaterVersion (mkVersion [0]))
354                 mainLibSet,
355               Dependency
356                 (PackageName "issue")
357                 (OrLaterVersion (mkVersion [0]))
358                 (NonEmptySet.fromNonEmpty
359                   (NE.fromList
360                     [
361                       LSubLibName
362                         (UnqualComponentName
363                           "sublib")]))],
364             mixins = []}},
365         condTreeConstraints = [
366           Dependency
367             (PackageName "issue")
368             (OrLaterVersion (mkVersion [0]))
369             mainLibSet,
370           Dependency
371             (PackageName "issue")
372             (OrLaterVersion (mkVersion [0]))
373             (NonEmptySet.fromNonEmpty
374               (NE.fromList
375                 [
376                   LSubLibName
377                     (UnqualComponentName
378                       "sublib")]))],
379         condTreeComponents = []}],
380   condTestSuites = [],
381   condBenchmarks = []}