1 GenericPackageDescription {
4 specVersion = CabalSpecV1_10,
5 package = PackageIdentifier {
10 licenseRaw = Right BSD3,
12 SymbolicPath "LICENSE"],
15 "andres@well-typed.com",
17 "Edsko de Vries <edsko@well-typed.com>, Andres L\246h <andres@well-typed.com>",
23 (mkVersion [7, 8, 4])),
27 (mkVersion [7, 10, 3])),
31 (mkVersion [8, 0, 1])),
35 (mkVersion [8, 0, 2])),
39 (mkVersion [8, 2, 1])),
42 (IntersectVersionRanges
46 (mkVersion [8, 4])))],
56 "https://github.com/well-typed/generics-sop",
60 repoSubdir = Nothing}],
62 "Generic Programming using True Sums of Products",
66 "A library to support the definition of generic functions.\n",
67 "Datatypes are viewed in a uniform, structured way:\n",
68 "the choice between constructors is represented using an n-ary\n",
69 "sum, and the arguments of each constructor are represented using\n",
70 "an n-ary product.\n",
72 "The module \"Generics.SOP\" is the main module of this library and contains\n",
73 "more detailed documentation.\n",
75 "Examples of using this library are provided by the following\n",
78 "* @<https://hackage.haskell.org/package/basic-sop basic-sop>@ basic examples,\n",
80 "* @<https://hackage.haskell.org/package/pretty-sop pretty-sop>@ generic pretty printing,\n",
82 "* @<https://hackage.haskell.org/package/lens-sop lens-sop>@ generically computed lenses,\n",
84 "* @<https://hackage.haskell.org/package/json-sop json-sop>@ generic JSON conversions.\n",
86 "A detailed description of the ideas behind this library is provided by\n",
89 "* Edsko de Vries and Andres L\246h.\n",
90 "<http://www.andres-loeh.de/TrueSumsOfProducts True Sums of Products>.\n",
91 "Workshop on Generic Programming (WGP) 2014.\n"],
92 category = "Generics",
94 buildTypeRaw = Just Custom,
100 (OrLaterVersion (mkVersion [0]))
103 (PackageName "Cabal")
104 (OrLaterVersion (mkVersion [0]))
107 (PackageName "cabal-doctest")
108 (IntersectVersionRanges
110 (mkVersion [1, 0, 2]))
114 defaultSetupDepends = False},
122 dataDir = SymbolicPath ".",
124 SymbolicPath "CHANGELOG.md"],
128 gpdScannedVersion = Nothing,
129 genPackageFlags = [],
132 condTreeData = Library {
133 libName = LMainLibName,
135 ModuleName "Generics.SOP",
136 ModuleName "Generics.SOP.GGP",
137 ModuleName "Generics.SOP.TH",
138 ModuleName "Generics.SOP.Dict",
140 "Generics.SOP.Type.Metadata",
142 "Generics.SOP.BasicFunctors",
144 "Generics.SOP.Classes",
146 "Generics.SOP.Constraint",
148 "Generics.SOP.Instances",
150 "Generics.SOP.Metadata",
151 ModuleName "Generics.SOP.NP",
152 ModuleName "Generics.SOP.NS",
154 "Generics.SOP.Universe",
155 ModuleName "Generics.SOP.Sing"],
156 reexportedModules = [],
160 LibraryVisibilityPublic,
161 libBuildInfo = BuildInfo {
164 buildToolDepends = [],
172 pkgconfigDepends = [],
174 extraFrameworkDirs = [],
185 defaultLanguage = Just
188 defaultExtensions = [
192 EnableExtension TypeFamilies,
193 EnableExtension RankNTypes,
194 EnableExtension TypeOperators,
195 EnableExtension GADTs,
196 EnableExtension ConstraintKinds,
198 MultiParamTypeClasses,
200 TypeSynonymInstances,
205 EnableExtension DeriveFunctor,
206 EnableExtension DeriveFoldable,
211 EnableExtension KindSignatures,
212 EnableExtension DataKinds,
214 FunctionalDependencies],
218 EnableExtension PolyKinds,
220 UndecidableInstances,
221 EnableExtension TemplateHaskell,
222 EnableExtension DeriveGeneric,
227 extraLibsStatic = [],
229 extraBundledLibs = [],
230 extraLibFlavours = [],
231 extraDynLibFlavours = [],
233 extraLibDirsStatic = [],
236 autogenIncludes = [],
237 installIncludes = [],
238 options = PerCompilerFlavor
241 profOptions = PerCompilerFlavor
245 PerCompilerFlavor [] [],
247 PerCompilerFlavor [] [],
249 PerCompilerFlavor [] [],
251 targetBuildDepends = [
254 (IntersectVersionRanges
261 (PackageName "template-haskell")
262 (IntersectVersionRanges
266 (mkVersion [2, 13])))
269 (PackageName "ghc-prim")
270 (IntersectVersionRanges
277 (PackageName "deepseq")
278 (IntersectVersionRanges
285 condTreeConstraints = [
288 (IntersectVersionRanges
295 (PackageName "template-haskell")
296 (IntersectVersionRanges
300 (mkVersion [2, 13])))
303 (PackageName "ghc-prim")
304 (IntersectVersionRanges
311 (PackageName "deepseq")
312 (IntersectVersionRanges
318 condTreeComponents = [
320 condBranchCondition =
321 `CNot (Var (Impl GHC (OrLaterVersion (mkVersion [7,8]))))`,
322 condBranchIfTrue = CondNode {
323 condTreeData = Library {
324 libName = LMainLibName,
326 reexportedModules = [],
330 LibraryVisibilityPublic,
331 libBuildInfo = BuildInfo {
334 buildToolDepends = [],
342 pkgconfigDepends = [],
344 extraFrameworkDirs = [],
354 defaultLanguage = Nothing,
356 defaultExtensions = [],
357 otherExtensions = [],
360 extraLibsStatic = [],
362 extraBundledLibs = [],
363 extraLibFlavours = [],
364 extraDynLibFlavours = [],
366 extraLibDirsStatic = [],
369 autogenIncludes = [],
370 installIncludes = [],
371 options = PerCompilerFlavor
374 profOptions = PerCompilerFlavor
378 PerCompilerFlavor [] [],
380 PerCompilerFlavor [] [],
382 PerCompilerFlavor [] [],
384 targetBuildDepends = [
386 (PackageName "tagged")
387 (IntersectVersionRanges
394 condTreeConstraints = [
396 (PackageName "tagged")
397 (IntersectVersionRanges
403 condTreeComponents = []},
404 condBranchIfFalse = Nothing},
406 condBranchCondition =
407 `CNot (Var (Impl GHC (OrLaterVersion (mkVersion [8,0]))))`,
408 condBranchIfTrue = CondNode {
409 condTreeData = Library {
410 libName = LMainLibName,
412 reexportedModules = [],
416 LibraryVisibilityPublic,
417 libBuildInfo = BuildInfo {
420 buildToolDepends = [],
428 pkgconfigDepends = [],
430 extraFrameworkDirs = [],
440 defaultLanguage = Nothing,
442 defaultExtensions = [],
443 otherExtensions = [],
446 extraLibsStatic = [],
448 extraBundledLibs = [],
449 extraLibFlavours = [],
450 extraDynLibFlavours = [],
452 extraLibDirsStatic = [],
455 autogenIncludes = [],
456 installIncludes = [],
457 options = PerCompilerFlavor
460 profOptions = PerCompilerFlavor
464 PerCompilerFlavor [] [],
466 PerCompilerFlavor [] [],
468 PerCompilerFlavor [] [],
470 targetBuildDepends = [
473 "transformers-compat")
474 (IntersectVersionRanges
481 (PackageName "transformers")
482 (IntersectVersionRanges
489 condTreeConstraints = [
492 "transformers-compat")
493 (IntersectVersionRanges
500 (PackageName "transformers")
501 (IntersectVersionRanges
507 condTreeComponents = []},
508 condBranchIfFalse = Nothing},
510 condBranchCondition =
511 `Var (Impl GHC (OrLaterVersion (mkVersion [7,8])))`,
512 condBranchIfTrue = CondNode {
513 condTreeData = Library {
514 libName = LMainLibName,
516 reexportedModules = [],
520 LibraryVisibilityPublic,
521 libBuildInfo = BuildInfo {
524 buildToolDepends = [],
532 pkgconfigDepends = [],
534 extraFrameworkDirs = [],
544 defaultLanguage = Nothing,
546 defaultExtensions = [
549 otherExtensions = [],
552 extraLibsStatic = [],
554 extraBundledLibs = [],
555 extraLibFlavours = [],
556 extraDynLibFlavours = [],
558 extraLibDirsStatic = [],
561 autogenIncludes = [],
562 installIncludes = [],
563 options = PerCompilerFlavor
566 profOptions = PerCompilerFlavor
570 PerCompilerFlavor [] [],
572 PerCompilerFlavor [] [],
574 PerCompilerFlavor [] [],
576 targetBuildDepends = [],
578 condTreeConstraints = [],
579 condTreeComponents = []},
580 condBranchIfFalse = Nothing},
582 condBranchCondition =
583 `Var (Impl GHC (EarlierVersion (mkVersion [7,10])))`,
584 condBranchIfTrue = CondNode {
585 condTreeData = Library {
586 libName = LMainLibName,
588 reexportedModules = [],
592 LibraryVisibilityPublic,
593 libBuildInfo = BuildInfo {
596 buildToolDepends = [],
604 pkgconfigDepends = [],
606 extraFrameworkDirs = [],
616 defaultLanguage = Nothing,
618 defaultExtensions = [],
621 OverlappingInstances],
624 extraLibsStatic = [],
626 extraBundledLibs = [],
627 extraLibFlavours = [],
628 extraDynLibFlavours = [],
630 extraLibDirsStatic = [],
633 autogenIncludes = [],
634 installIncludes = [],
635 options = PerCompilerFlavor
638 profOptions = PerCompilerFlavor
642 PerCompilerFlavor [] [],
644 PerCompilerFlavor [] [],
646 PerCompilerFlavor [] [],
648 targetBuildDepends = [],
650 condTreeConstraints = [],
651 condTreeComponents = []},
652 condBranchIfFalse = Nothing}]},
653 condSubLibraries = [],
654 condForeignLibs = [],
655 condExecutables = [],
658 (UnqualComponentName "doctests")
660 condTreeData = TestSuite {
661 testName = UnqualComponentName
663 testInterface = TestSuiteExeV10
665 (SymbolicPath "doctests.hs"),
666 testBuildInfo = BuildInfo {
669 buildToolDepends = [],
677 pkgconfigDepends = [],
679 extraFrameworkDirs = [],
686 SymbolicPath "test"],
690 defaultLanguage = Just
693 defaultExtensions = [],
694 otherExtensions = [],
697 extraLibsStatic = [],
699 extraBundledLibs = [],
700 extraLibFlavours = [],
701 extraDynLibFlavours = [],
703 extraLibDirsStatic = [],
706 autogenIncludes = [],
707 installIncludes = [],
708 options = PerCompilerFlavor
709 ["-Wall", "-threaded"]
711 profOptions = PerCompilerFlavor
715 PerCompilerFlavor [] [],
717 PerCompilerFlavor [] [],
719 PerCompilerFlavor [] [],
724 targetBuildDepends = [
727 (OrLaterVersion (mkVersion [0]))
730 (PackageName "doctest")
731 (IntersectVersionRanges
735 (mkVersion [0, 14])))
738 testCodeGenerators = []},
739 condTreeConstraints = [
742 (OrLaterVersion (mkVersion [0]))
745 (PackageName "doctest")
746 (IntersectVersionRanges
750 (mkVersion [0, 14])))
752 condTreeComponents = []},
755 "generics-sop-examples")
757 condTreeData = TestSuite {
758 testName = UnqualComponentName
760 testInterface = TestSuiteExeV10
762 (SymbolicPath "Example.hs"),
763 testBuildInfo = BuildInfo {
766 buildToolDepends = [],
774 pkgconfigDepends = [],
776 extraFrameworkDirs = [],
783 SymbolicPath "test"],
785 ModuleName "HTransExample"],
788 defaultLanguage = Just
791 defaultExtensions = [],
792 otherExtensions = [],
795 extraLibsStatic = [],
797 extraBundledLibs = [],
798 extraLibFlavours = [],
799 extraDynLibFlavours = [],
801 extraLibDirsStatic = [],
804 autogenIncludes = [],
805 installIncludes = [],
806 options = PerCompilerFlavor
809 profOptions = PerCompilerFlavor
813 PerCompilerFlavor [] [],
815 PerCompilerFlavor [] [],
817 PerCompilerFlavor [] [],
819 targetBuildDepends = [
822 (IntersectVersionRanges
829 (PackageName "generics-sop")
830 (OrLaterVersion (mkVersion [0]))
833 testCodeGenerators = []},
834 condTreeConstraints = [
837 (IntersectVersionRanges
844 (PackageName "generics-sop")
845 (OrLaterVersion (mkVersion [0]))
847 condTreeComponents = []}],