Pretty OpenModule Source # | |
Instance detailsDefined in Distribution.Backpack |
Pretty OpenUnitId Source # | |
Instance detailsDefined in Distribution.Backpack |
Pretty AbiTag Source # | |
Instance detailsDefined in Distribution.Compiler |
Pretty CompilerFlavor Source # | |
Instance detailsDefined in Distribution.Compiler |
Pretty CompilerId Source # | |
Instance detailsDefined in Distribution.Compiler |
Pretty FilePathNT Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty SpecLicense Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty SpecVersion Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty TestedWith Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty Token Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty Token' Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty License Source # | |
Instance detailsDefined in Distribution.License |
Pretty ModuleName Source # | |
Instance detailsDefined in Distribution.ModuleName |
Pretty License Source # | |
Instance detailsDefined in Distribution.SPDX.License |
Pretty LicenseExceptionId Source # | |
Instance detailsDefined in Distribution.SPDX.LicenseExceptionId |
Pretty LicenseExpression Source # | |
Instance detailsDefined in Distribution.SPDX.LicenseExpression |
Pretty SimpleLicenseExpression Source # | |
Instance detailsDefined in Distribution.SPDX.LicenseExpression |
Pretty LicenseId Source # | |
Instance detailsDefined in Distribution.SPDX.LicenseId |
Pretty LicenseRef Source # | |
Instance detailsDefined in Distribution.SPDX.LicenseReference |
Pretty HaddockTarget Source # | |
Instance detailsDefined in Distribution.Simple.Setup |
Pretty TestShowDetails Source # | |
Instance detailsDefined in Distribution.Simple.Setup |
Pretty Arch Source # | |
Instance detailsDefined in Distribution.System |
Pretty OS Source # | |
Instance detailsDefined in Distribution.System |
Pretty Platform Source # | |
Instance detailsDefined in Distribution.System |
Pretty AbiDependency Source # | |
Instance detailsDefined in Distribution.Types.AbiDependency |
Pretty AbiHash Source # | |
Instance detailsDefined in Distribution.Types.AbiHash |
Pretty BenchmarkType Source # | |
Instance detailsDefined in Distribution.Types.BenchmarkType |
Pretty BuildType Source # | |
Instance detailsDefined in Distribution.Types.BuildType |
Pretty ComponentId Source # | |
Instance detailsDefined in Distribution.Types.ComponentId |
Pretty ComponentName Source # | |
Instance detailsDefined in Distribution.Types.ComponentName |
Pretty Dependency Source # | >>> prettyShow $ Dependency "pkg" anyVersion mainLibSet
"pkg"
>>> prettyShow $ Dependency "pkg" anyVersion $ NES.insert (LSubLibName "sublib") mainLibSet
"pkg:{pkg, sublib}"
>>> prettyShow $ Dependency "pkg" anyVersion $ NES.singleton (LSubLibName "sublib")
"pkg:sublib"
>>> prettyShow $ Dependency "pkg" anyVersion $ NES.insert (LSubLibName "sublib-b") $ NES.singleton (LSubLibName "sublib-a")
"pkg:{sublib-a, sublib-b}"
|
Instance detailsDefined in Distribution.Types.Dependency |
Pretty ExeDependency Source # | |
Instance detailsDefined in Distribution.Types.ExeDependency |
Pretty ExecutableScope Source # | |
Instance detailsDefined in Distribution.Types.ExecutableScope |
Pretty ExposedModule Source # | |
Instance detailsDefined in Distribution.Types.ExposedModule |
Pretty FlagAssignment Source # | Since: Cabal-3.4.0.0 |
Instance detailsDefined in Distribution.Types.Flag |
Pretty FlagName Source # | |
Instance detailsDefined in Distribution.Types.Flag |
Pretty LibVersionInfo Source # | |
Instance detailsDefined in Distribution.Types.ForeignLib |
Pretty ForeignLibOption Source # | |
Instance detailsDefined in Distribution.Types.ForeignLibOption |
Pretty ForeignLibType Source # | |
Instance detailsDefined in Distribution.Types.ForeignLibType |
Pretty IncludeRenaming Source # | |
Instance detailsDefined in Distribution.Types.IncludeRenaming |
Pretty LegacyExeDependency Source # | |
Instance detailsDefined in Distribution.Types.LegacyExeDependency |
Pretty LibraryVisibility Source # | |
Instance detailsDefined in Distribution.Types.LibraryVisibility |
Pretty Mixin Source # | |
Instance detailsDefined in Distribution.Types.Mixin |
Pretty Module Source # | |
Instance detailsDefined in Distribution.Types.Module |
Pretty ModuleReexport Source # | |
Instance detailsDefined in Distribution.Types.ModuleReexport |
Pretty ModuleRenaming Source # | |
Instance detailsDefined in Distribution.Types.ModuleRenaming |
Pretty MungedPackageId Source # | >>> prettyShow $ MungedPackageId (MungedPackageName "servant" LMainLibName) (mkVersion [1,2,3])
"servant-1.2.3"
>>> prettyShow $ MungedPackageId (MungedPackageName "servant" (LSubLibName "lackey")) (mkVersion [0,1,2])
"z-servant-z-lackey-0.1.2"
|
Instance detailsDefined in Distribution.Types.MungedPackageId |
Pretty MungedPackageName Source # | Computes the package name for a library. If this is the public
library, it will just be the original package name; otherwise,
it will be a munged package name recording the original package
name as well as the name of the internal library. A lot of tooling in the Haskell ecosystem assumes that if something
is installed to the package database with the package name foo ,
then it actually is an entry for the (only public) library in package
foo . With internal packages, this is not necessarily true:
a public library as well as arbitrarily many internal libraries may
come from the same package. To prevent tools from getting confused
in this case, the package name of these internal libraries is munged
so that they do not conflict the public library proper. A particular
case where this matters is ghc-pkg: if we don't munge the package
name, the inplace registration will OVERRIDE a different internal
library. We munge into a reserved namespace, "z-", and encode both the
component name and the package name of an internal library using the
following format: compat-pkg-name ::= "z-" package-name "-z-" library-name where package-name and library-name have "-" ( "z" + ) "-"
segments encoded by adding an extra "z". When we have the public library, the compat-pkg-name is just the
package-name, no surprises there! >>> prettyShow $ MungedPackageName "servant" LMainLibName
"servant"
>>> prettyShow $ MungedPackageName "servant" (LSubLibName "lackey")
"z-servant-z-lackey"
|
Instance detailsDefined in Distribution.Types.MungedPackageName |
Pretty PackageIdentifier Source # | |
Instance detailsDefined in Distribution.Types.PackageId |
Pretty PackageName Source # | |
Instance detailsDefined in Distribution.Types.PackageName |
Pretty PackageVersionConstraint Source # | |
Instance detailsDefined in Distribution.Types.PackageVersionConstraint |
Pretty PkgconfigDependency Source # | |
Instance detailsDefined in Distribution.Types.PkgconfigDependency |
Pretty PkgconfigName Source # | |
Instance detailsDefined in Distribution.Types.PkgconfigName |
Pretty PkgconfigVersion Source # | |
Instance detailsDefined in Distribution.Types.PkgconfigVersion |
Pretty PkgconfigVersionRange Source # | |
Instance detailsDefined in Distribution.Types.PkgconfigVersionRange |
Pretty KnownRepoType Source # | |
Instance detailsDefined in Distribution.Types.SourceRepo |
Pretty RepoKind Source # | |
Instance detailsDefined in Distribution.Types.SourceRepo |
Pretty RepoType Source # | |
Instance detailsDefined in Distribution.Types.SourceRepo |
Pretty TestType Source # | |
Instance detailsDefined in Distribution.Types.TestType |
Pretty DefUnitId Source # | |
Instance detailsDefined in Distribution.Types.UnitId |
Pretty UnitId Source # | The textual format for UnitId coincides with the format
GHC accepts for -package-id . |
Instance detailsDefined in Distribution.Types.UnitId |
Pretty UnqualComponentName Source # | |
Instance detailsDefined in Distribution.Types.UnqualComponentName |
Pretty Version Source # | |
Instance detailsDefined in Distribution.Types.Version |
Pretty VersionRange Source # | >>> fmap pretty (simpleParsec' CabalSpecV1_6 "== 3.2.*" :: Maybe VersionRange)
Just >=3.2 && <3.3
>>> fmap (prettyVersioned CabalSpecV1_6) (simpleParsec' CabalSpecV1_6 "== 3.2.*" :: Maybe VersionRange)
Just ==3.2.*
>>> fmap pretty (simpleParsec' CabalSpecV1_6 "-any" :: Maybe VersionRange)
Just >=0
>>> fmap (prettyVersioned CabalSpecV1_6) (simpleParsec' CabalSpecV1_6 "-any" :: Maybe VersionRange)
Just >=0
|
Instance detailsDefined in Distribution.Types.VersionRange.Internal |
Pretty Verbosity Source # | |
Instance detailsDefined in Distribution.Verbosity |
Pretty Extension Source # | |
Instance detailsDefined in Language.Haskell.Extension |
Pretty KnownExtension Source # | |
Instance detailsDefined in Language.Haskell.Extension |
Pretty Language Source # | |
Instance detailsDefined in Language.Haskell.Extension |
Pretty Doc Source # | Since: Cabal-3.4.0.0 |
Instance detailsDefined in Distribution.Pretty |
Pretty Bool Source # | |
Instance detailsDefined in Distribution.Pretty |
Pretty Int Source # | |
Instance detailsDefined in Distribution.Pretty |
FieldGrammar Pretty PrettyFieldGrammar Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Pretty |
Pretty a => Pretty (MQuoted a) Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
Pretty a => Pretty (Identity a) Source # | |
Instance detailsDefined in Distribution.Pretty |
Pretty (SymbolicPath from to) Source # | |
Instance detailsDefined in Distribution.Utils.Path |
(Newtype a b, Sep sep, Pretty b) => Pretty (List sep b a) Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
(Newtype a b, Sep sep, Pretty b) => Pretty (NonEmpty' sep b a) Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |
(Newtype a b, Sep sep, Pretty b) => Pretty (Set' sep b a) Source # | |
Instance detailsDefined in Distribution.FieldGrammar.Newtypes |