Cabal-2.4.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Pretty

Contents

Synopsis

Documentation

class Pretty a where Source #

Methods

pretty :: a -> Doc Source #

Instances
Pretty Bool # 
Instance details

Defined in Distribution.Pretty

Methods

pretty :: Bool -> Doc Source #

Pretty Int # 
Instance details

Defined in Distribution.Pretty

Methods

pretty :: Int -> Doc Source #

Pretty Version # 
Instance details

Defined in Distribution.Types.Version

Methods

pretty :: Version -> Doc Source #

Pretty VersionRange # 
Instance details

Defined in Distribution.Types.VersionRange

Pretty RepoType # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

pretty :: RepoType -> Doc Source #

Pretty RepoKind # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

pretty :: RepoKind -> Doc Source #

Pretty PkgconfigName # 
Instance details

Defined in Distribution.Types.PkgconfigName

Pretty ForeignLibType # 
Instance details

Defined in Distribution.Types.ForeignLibType

Pretty ForeignLibOption # 
Instance details

Defined in Distribution.Types.ForeignLibOption

Pretty ExecutableScope # 
Instance details

Defined in Distribution.Types.ExecutableScope

Pretty ComponentId # 
Instance details

Defined in Distribution.Types.ComponentId

Pretty BuildType # 
Instance details

Defined in Distribution.Types.BuildType

Methods

pretty :: BuildType -> Doc Source #

Pretty AbiHash # 
Instance details

Defined in Distribution.Types.AbiHash

Methods

pretty :: AbiHash -> Doc Source #

Pretty Platform # 
Instance details

Defined in Distribution.System

Methods

pretty :: Platform -> Doc Source #

Pretty Arch # 
Instance details

Defined in Distribution.System

Methods

pretty :: Arch -> Doc Source #

Pretty OS # 
Instance details

Defined in Distribution.System

Methods

pretty :: OS -> Doc Source #

Pretty LicenseRef # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Pretty LicenseId # 
Instance details

Defined in Distribution.SPDX.LicenseId

Methods

pretty :: LicenseId -> Doc Source #

Pretty LicenseExceptionId # 
Instance details

Defined in Distribution.SPDX.LicenseExceptionId

Pretty SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty License # 
Instance details

Defined in Distribution.SPDX.License

Methods

pretty :: License -> Doc Source #

Pretty ModuleName # 
Instance details

Defined in Distribution.ModuleName

Pretty ModuleRenaming # 
Instance details

Defined in Distribution.Types.ModuleRenaming

Pretty IncludeRenaming # 
Instance details

Defined in Distribution.Types.IncludeRenaming

Pretty TestType # 
Instance details

Defined in Distribution.Types.TestType

Methods

pretty :: TestType -> Doc Source #

Pretty PkgconfigDependency # 
Instance details

Defined in Distribution.Types.PkgconfigDependency

Pretty BenchmarkType # 
Instance details

Defined in Distribution.Types.BenchmarkType

Pretty License # 
Instance details

Defined in Distribution.License

Methods

pretty :: License -> Doc Source #

Pretty KnownExtension # 
Instance details

Defined in Language.Haskell.Extension

Pretty Extension # 
Instance details

Defined in Language.Haskell.Extension

Methods

pretty :: Extension -> Doc Source #

Pretty Language # 
Instance details

Defined in Language.Haskell.Extension

Methods

pretty :: Language -> Doc Source #

Pretty CompilerFlavor # 
Instance details

Defined in Distribution.Compiler

Pretty FilePathNT # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty FreeText # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: FreeText -> Doc Source #

Pretty TestedWith # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty SpecLicense # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty SpecVersion # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty Token' # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: Token' -> Doc Source #

Pretty Token # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: Token -> Doc Source #

Pretty PackageName # 
Instance details

Defined in Distribution.Types.PackageName

Pretty UnqualComponentName # 
Instance details

Defined in Distribution.Types.UnqualComponentName

Pretty ComponentName # 
Instance details

Defined in Distribution.Types.ComponentName

Pretty PackageIdentifier # 
Instance details

Defined in Distribution.Types.PackageId

Pretty DefUnitId # 
Instance details

Defined in Distribution.Types.UnitId

Methods

pretty :: DefUnitId -> Doc Source #

Pretty UnitId #

The textual format for UnitId coincides with the format GHC accepts for -package-id.

Instance details

Defined in Distribution.Types.UnitId

Methods

pretty :: UnitId -> Doc Source #

Pretty Module # 
Instance details

Defined in Distribution.Types.Module

Methods

pretty :: Module -> Doc Source #

Pretty OpenModule # 
Instance details

Defined in Distribution.Backpack

Pretty OpenUnitId # 
Instance details

Defined in Distribution.Backpack

Pretty ModuleReexport # 
Instance details

Defined in Distribution.Types.ModuleReexport

Pretty Mixin # 
Instance details

Defined in Distribution.Types.Mixin

Methods

pretty :: Mixin -> Doc Source #

Pretty ExeDependency # 
Instance details

Defined in Distribution.Types.ExeDependency

Pretty Dependency # 
Instance details

Defined in Distribution.Types.Dependency

Pretty MungedPackageName # 
Instance details

Defined in Distribution.Types.MungedPackageName

Pretty AbiDependency # 
Instance details

Defined in Distribution.Types.AbiDependency

Pretty LegacyExeDependency # 
Instance details

Defined in Distribution.Types.LegacyExeDependency

Pretty LibVersionInfo # 
Instance details

Defined in Distribution.Types.ForeignLib

Pretty FlagName # 
Instance details

Defined in Distribution.Types.GenericPackageDescription

Methods

pretty :: FlagName -> Doc Source #

Pretty ExposedModule # 
Instance details

Defined in Distribution.Types.ExposedModule

Pretty TestShowDetails # 
Instance details

Defined in Distribution.Simple.Setup

Pretty a => Pretty (Identity a) # 
Instance details

Defined in Distribution.Pretty

Methods

pretty :: Identity a -> Doc Source #

Pretty a => Pretty (MQuoted a) # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: MQuoted a -> Doc Source #

(Newtype b a, Sep sep, Pretty b) => Pretty (List sep b a) # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: List sep b a -> Doc Source #

defaultStyle :: Style Source #

The default rendering style used in Cabal for console output. It has a fixed page width and adds line breaks automatically.

flatStyle :: Style Source #

A style for rendering all on one line.

Utilities

showFreeText :: String -> Doc Source #

Pretty-print free-format text, ensuring that it is vertically aligned, and with blank lines replaced by dots for correct re-parsing.

indentWith :: Int Source #

the indentation used for pretty printing

Deprecated

type Separator = [Doc] -> Doc Source #