Cabal-2.2.0.1: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Pretty

Contents

Synopsis

Documentation

class Pretty a where Source #

Minimal complete definition

pretty

Methods

pretty :: a -> Doc Source #

Instances
Pretty Bool Source # 
Instance details

Defined in Distribution.Pretty

Methods

pretty :: Bool -> Doc Source #

Pretty Int Source # 
Instance details

Defined in Distribution.Pretty

Methods

pretty :: Int -> Doc Source #

Pretty Version Source # 
Instance details

Defined in Distribution.Types.Version

Methods

pretty :: Version -> Doc Source #

Pretty VersionRange Source # 
Instance details

Defined in Distribution.Types.VersionRange

Pretty RepoType Source # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

pretty :: RepoType -> Doc Source #

Pretty RepoKind Source # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

pretty :: RepoKind -> Doc Source #

Pretty PkgconfigName Source # 
Instance details

Defined in Distribution.Types.PkgconfigName

Pretty ForeignLibType Source # 
Instance details

Defined in Distribution.Types.ForeignLibType

Pretty ForeignLibOption Source # 
Instance details

Defined in Distribution.Types.ForeignLibOption

Pretty ExecutableScope Source # 
Instance details

Defined in Distribution.Types.ExecutableScope

Pretty ComponentId Source # 
Instance details

Defined in Distribution.Types.ComponentId

Pretty BuildType Source # 
Instance details

Defined in Distribution.Types.BuildType

Methods

pretty :: BuildType -> Doc Source #

Pretty AbiHash Source # 
Instance details

Defined in Distribution.Types.AbiHash

Methods

pretty :: AbiHash -> Doc Source #

Pretty Platform Source # 
Instance details

Defined in Distribution.System

Methods

pretty :: Platform -> Doc Source #

Pretty Arch Source # 
Instance details

Defined in Distribution.System

Methods

pretty :: Arch -> Doc Source #

Pretty OS Source # 
Instance details

Defined in Distribution.System

Methods

pretty :: OS -> Doc Source #

Pretty LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Pretty LicenseId Source # 
Instance details

Defined in Distribution.SPDX.LicenseId

Methods

pretty :: LicenseId -> Doc Source #

Pretty LicenseExceptionId Source # 
Instance details

Defined in Distribution.SPDX.LicenseExceptionId

Pretty SimpleLicenseExpression Source # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty LicenseExpression Source # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty License Source # 
Instance details

Defined in Distribution.SPDX.License

Methods

pretty :: License -> Doc Source #

Pretty ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Pretty ModuleRenaming Source # 
Instance details

Defined in Distribution.Types.ModuleRenaming

Pretty IncludeRenaming Source # 
Instance details

Defined in Distribution.Types.IncludeRenaming

Pretty TestType Source # 
Instance details

Defined in Distribution.Types.TestType

Methods

pretty :: TestType -> Doc Source #

Pretty PkgconfigDependency Source # 
Instance details

Defined in Distribution.Types.PkgconfigDependency

Pretty BenchmarkType Source # 
Instance details

Defined in Distribution.Types.BenchmarkType

Pretty License Source # 
Instance details

Defined in Distribution.License

Methods

pretty :: License -> Doc Source #

Pretty KnownExtension Source # 
Instance details

Defined in Language.Haskell.Extension

Pretty Extension Source # 
Instance details

Defined in Language.Haskell.Extension

Methods

pretty :: Extension -> Doc Source #

Pretty Language Source # 
Instance details

Defined in Language.Haskell.Extension

Methods

pretty :: Language -> Doc Source #

Pretty CompilerFlavor Source # 
Instance details

Defined in Distribution.Compiler

Pretty FilePathNT Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty FreeText Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: FreeText -> Doc Source #

Pretty TestedWith Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty SpecLicense Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty SpecVersion Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Pretty Token' Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: Token' -> Doc Source #

Pretty Token Source # 
Instance details

Defined in Distribution.Parsec.Newtypes

Methods

pretty :: Token -> Doc Source #

Pretty PackageName Source # 
Instance details

Defined in Distribution.Types.PackageName

Pretty UnqualComponentName Source # 
Instance details

Defined in Distribution.Types.UnqualComponentName

Pretty ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Pretty PackageIdentifier Source # 
Instance details

Defined in Distribution.Types.PackageId

Pretty DefUnitId Source # 
Instance details

Defined in Distribution.Types.UnitId

Methods

pretty :: DefUnitId -> Doc Source #

Pretty UnitId Source #

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 Source # 
Instance details

Defined in Distribution.Types.Module

Methods

pretty :: Module -> Doc Source #

Pretty OpenModule Source # 
Instance details

Defined in Distribution.Backpack

Pretty OpenUnitId Source # 
Instance details

Defined in Distribution.Backpack

Pretty ModuleReexport Source # 
Instance details

Defined in Distribution.Types.ModuleReexport

Pretty Mixin Source # 
Instance details

Defined in Distribution.Types.Mixin

Methods

pretty :: Mixin -> Doc Source #

Pretty ExeDependency Source # 
Instance details

Defined in Distribution.Types.ExeDependency

Pretty Dependency Source # 
Instance details

Defined in Distribution.Types.Dependency

Pretty MungedPackageName Source # 
Instance details

Defined in Distribution.Types.MungedPackageName

Pretty AbiDependency Source # 
Instance details

Defined in Distribution.Types.AbiDependency

Pretty LegacyExeDependency Source # 
Instance details

Defined in Distribution.Types.LegacyExeDependency

Pretty LibVersionInfo Source # 
Instance details

Defined in Distribution.Types.ForeignLib

Pretty FlagName Source # 
Instance details

Defined in Distribution.Types.GenericPackageDescription

Methods

pretty :: FlagName -> Doc Source #

Pretty ExposedModule Source # 
Instance details

Defined in Distribution.Types.ExposedModule

Pretty TestShowDetails Source # 
Instance details

Defined in Distribution.Simple.Setup

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

Defined in Distribution.Pretty

Methods

pretty :: Identity a -> Doc Source #

Pretty a => Pretty (MQuoted a) Source # 
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) Source # 
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 #