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 # 

Methods

pretty :: Bool -> Doc Source #

Pretty Int Source # 

Methods

pretty :: Int -> Doc Source #

Pretty Version Source # 

Methods

pretty :: Version -> Doc Source #

Pretty VersionRange Source # 
Pretty RepoType Source # 

Methods

pretty :: RepoType -> Doc Source #

Pretty RepoKind Source # 

Methods

pretty :: RepoKind -> Doc Source #

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

Methods

pretty :: BuildType -> Doc Source #

Pretty AbiHash Source # 

Methods

pretty :: AbiHash -> Doc Source #

Pretty Platform Source # 

Methods

pretty :: Platform -> Doc Source #

Pretty Arch Source # 

Methods

pretty :: Arch -> Doc Source #

Pretty OS Source # 

Methods

pretty :: OS -> Doc Source #

Pretty LicenseRef Source # 
Pretty LicenseId Source # 

Methods

pretty :: LicenseId -> Doc Source #

Pretty LicenseExceptionId Source # 
Pretty SimpleLicenseExpression Source # 
Pretty LicenseExpression Source # 
Pretty License Source # 

Methods

pretty :: License -> Doc Source #

Pretty ModuleName Source # 
Pretty ModuleRenaming Source # 
Pretty IncludeRenaming Source # 
Pretty TestType Source # 

Methods

pretty :: TestType -> Doc Source #

Pretty PkgconfigDependency Source # 
Pretty BenchmarkType Source # 
Pretty License Source # 

Methods

pretty :: License -> Doc Source #

Pretty KnownExtension Source # 
Pretty Extension Source # 

Methods

pretty :: Extension -> Doc Source #

Pretty Language Source # 

Methods

pretty :: Language -> Doc Source #

Pretty CompilerFlavor Source # 
Pretty FilePathNT Source # 
Pretty FreeText Source # 

Methods

pretty :: FreeText -> Doc Source #

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

Methods

pretty :: Token' -> Doc Source #

Pretty Token Source # 

Methods

pretty :: Token -> Doc Source #

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

Methods

pretty :: DefUnitId -> Doc Source #

Pretty UnitId Source #

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

Methods

pretty :: UnitId -> Doc Source #

Pretty Module Source # 

Methods

pretty :: Module -> Doc Source #

Pretty OpenModule Source # 
Pretty OpenUnitId Source # 
Pretty ModuleReexport Source # 
Pretty Mixin Source # 

Methods

pretty :: Mixin -> Doc Source #

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

Methods

pretty :: FlagName -> Doc Source #

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

Methods

pretty :: Identity a -> Doc Source #

Pretty a => Pretty (MQuoted a) Source # 

Methods

pretty :: MQuoted a -> Doc Source #

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

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 #