Instances13Eq, Data, Ord, Read, Show, Generic, …
Eq LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryData LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryOrd LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryRead LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryShow LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryGeneric LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibrarySemigroup LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryMonoid LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryThis instance is not good.
We need it for
PackageDescription.Configuration.addBuildableCondition. More correct method would be some kind of "create empty clone".More concretely,
addBuildableConditionwill make `libVisibility = False` libraries when `buildable: false`. This may cause problems.NFData LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryBinary LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryStructured LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.LibraryHasBuildInfo LibraryDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.Librarytype Rep Library = D1 ('MetaDataDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.Library"Library"
"Distribution.Types.Library"
"Cabal-syntax-3.12.1.0-3adc"
'False) (C1 ('MetaCons"Library"
'PrefixI 'True) ((S1 ('MetaSel ('Just"libName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LibraryName) :*: (S1 ('MetaSel ('Just"exposedModules"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ModuleName]) :*: S1 ('MetaSel ('Just"reexportedModules"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ModuleReexport]))) :*: ((S1 ('MetaSel ('Just"signatures"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ModuleName]) :*: S1 ('MetaSel ('Just"libExposed"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just"libVisibility"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LibraryVisibility) :*: S1 ('MetaSel ('Just"libBuildInfo"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildInfo)))))