Cabal-2.2.0.0: 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

Methods

pretty :: Bool -> Doc Source #

Pretty Int Source # 
Instance details

Methods

pretty :: Int -> Doc Source #

Pretty Version Source # 
Instance details

Methods

pretty :: Version -> Doc Source #

Pretty VersionRange Source # 
Instance details
Pretty RepoType Source # 
Instance details

Methods

pretty :: RepoType -> Doc Source #

Pretty RepoKind Source # 
Instance details

Methods

pretty :: RepoKind -> Doc Source #

Pretty PkgconfigName Source # 
Instance details
Pretty ForeignLibType Source # 
Instance details
Pretty ForeignLibOption Source # 
Instance details
Pretty ExecutableScope Source # 
Instance details
Pretty ComponentId Source # 
Instance details
Pretty BuildType Source # 
Instance details

Methods

pretty :: BuildType -> Doc Source #

Pretty AbiHash Source # 
Instance details

Methods

pretty :: AbiHash -> Doc Source #

Pretty Platform Source # 
Instance details

Methods

pretty :: Platform -> Doc Source #

Pretty Arch Source # 
Instance details

Methods

pretty :: Arch -> Doc Source #

Pretty OS Source # 
Instance details

Methods

pretty :: OS -> Doc Source #

Pretty LicenseRef Source # 
Instance details
Pretty LicenseId Source # 
Instance details

Methods

pretty :: LicenseId -> Doc Source #

Pretty LicenseExceptionId Source # 
Instance details
Pretty SimpleLicenseExpression Source # 
Instance details
Pretty LicenseExpression Source # 
Instance details
Pretty License Source # 
Instance details

Methods

pretty :: License -> Doc Source #

Pretty ModuleName Source # 
Instance details
Pretty ModuleRenaming Source # 
Instance details
Pretty IncludeRenaming Source # 
Instance details
Pretty TestType Source # 
Instance details

Methods

pretty :: TestType -> Doc Source #

Pretty PkgconfigDependency Source # 
Instance details
Pretty BenchmarkType Source # 
Instance details
Pretty License Source # 
Instance details

Methods

pretty :: License -> Doc Source #

Pretty KnownExtension Source # 
Instance details
Pretty Extension Source # 
Instance details

Methods

pretty :: Extension -> Doc Source #

Pretty Language Source # 
Instance details

Methods

pretty :: Language -> Doc Source #

Pretty CompilerFlavor Source # 
Instance details
Pretty FilePathNT Source # 
Instance details
Pretty FreeText Source # 
Instance details

Methods

pretty :: FreeText -> Doc Source #

Pretty TestedWith Source # 
Instance details
Pretty SpecLicense Source # 
Instance details
Pretty SpecVersion Source # 
Instance details
Pretty Token' Source # 
Instance details

Methods

pretty :: Token' -> Doc Source #

Pretty Token Source # 
Instance details

Methods

pretty :: Token -> Doc Source #

Pretty PackageName Source # 
Instance details
Pretty UnqualComponentName Source # 
Instance details
Pretty ComponentName Source # 
Instance details
Pretty PackageIdentifier Source # 
Instance details
Pretty DefUnitId Source # 
Instance details

Methods

pretty :: DefUnitId -> Doc Source #

Pretty UnitId Source #

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

Instance details

Methods

pretty :: UnitId -> Doc Source #

Pretty Module Source # 
Instance details

Methods

pretty :: Module -> Doc Source #

Pretty OpenModule Source # 
Instance details
Pretty OpenUnitId Source # 
Instance details
Pretty ModuleReexport Source # 
Instance details
Pretty Mixin Source # 
Instance details

Methods

pretty :: Mixin -> Doc Source #

Pretty ExeDependency Source # 
Instance details
Pretty Dependency Source # 
Instance details
Pretty MungedPackageName Source # 
Instance details
Pretty AbiDependency Source # 
Instance details
Pretty LegacyExeDependency Source # 
Instance details
Pretty LibVersionInfo Source # 
Instance details
Pretty FlagName Source # 
Instance details

Methods

pretty :: FlagName -> Doc Source #

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

Methods

pretty :: Identity a -> Doc Source #

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

Methods

pretty :: MQuoted a -> Doc Source #

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

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 #