Cabal-2.2.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Pretty

Contents

Synopsis

Documentation

class Pretty a where #

Minimal complete definition

pretty

Methods

pretty :: a -> Doc #

Instances

Pretty Bool # 

Methods

pretty :: Bool -> Doc #

Pretty Int # 

Methods

pretty :: Int -> Doc #

Pretty Version # 

Methods

pretty :: Version -> Doc #

Pretty VersionRange # 

Methods

pretty :: VersionRange -> Doc #

Pretty RepoType # 

Methods

pretty :: RepoType -> Doc #

Pretty RepoKind # 

Methods

pretty :: RepoKind -> Doc #

Pretty PkgconfigName # 

Methods

pretty :: PkgconfigName -> Doc #

Pretty ForeignLibType # 

Methods

pretty :: ForeignLibType -> Doc #

Pretty ForeignLibOption # 
Pretty ExecutableScope # 
Pretty ComponentId # 

Methods

pretty :: ComponentId -> Doc #

Pretty BuildType # 

Methods

pretty :: BuildType -> Doc #

Pretty AbiHash # 

Methods

pretty :: AbiHash -> Doc #

Pretty Platform # 

Methods

pretty :: Platform -> Doc #

Pretty Arch # 

Methods

pretty :: Arch -> Doc #

Pretty OS # 

Methods

pretty :: OS -> Doc #

Pretty LicenseRef # 

Methods

pretty :: LicenseRef -> Doc #

Pretty LicenseId # 

Methods

pretty :: LicenseId -> Doc #

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

Methods

pretty :: License -> Doc #

Pretty ModuleName # 

Methods

pretty :: ModuleName -> Doc #

Pretty ModuleRenaming # 

Methods

pretty :: ModuleRenaming -> Doc #

Pretty IncludeRenaming # 
Pretty TestType # 

Methods

pretty :: TestType -> Doc #

Pretty PkgconfigDependency # 
Pretty BenchmarkType # 

Methods

pretty :: BenchmarkType -> Doc #

Pretty License # 

Methods

pretty :: License -> Doc #

Pretty KnownExtension # 

Methods

pretty :: KnownExtension -> Doc #

Pretty Extension # 

Methods

pretty :: Extension -> Doc #

Pretty Language # 

Methods

pretty :: Language -> Doc #

Pretty CompilerFlavor # 

Methods

pretty :: CompilerFlavor -> Doc #

Pretty FilePathNT # 

Methods

pretty :: FilePathNT -> Doc #

Pretty FreeText # 

Methods

pretty :: FreeText -> Doc #

Pretty TestedWith # 

Methods

pretty :: TestedWith -> Doc #

Pretty SpecLicense # 

Methods

pretty :: SpecLicense -> Doc #

Pretty SpecVersion # 

Methods

pretty :: SpecVersion -> Doc #

Pretty Token' # 

Methods

pretty :: Token' -> Doc #

Pretty Token # 

Methods

pretty :: Token -> Doc #

Pretty PackageName # 

Methods

pretty :: PackageName -> Doc #

Pretty UnqualComponentName # 
Pretty ComponentName # 

Methods

pretty :: ComponentName -> Doc #

Pretty PackageIdentifier # 
Pretty DefUnitId # 

Methods

pretty :: DefUnitId -> Doc #

Pretty UnitId #

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

Methods

pretty :: UnitId -> Doc #

Pretty Module # 

Methods

pretty :: Module -> Doc #

Pretty OpenModule # 

Methods

pretty :: OpenModule -> Doc #

Pretty OpenUnitId # 

Methods

pretty :: OpenUnitId -> Doc #

Pretty ModuleReexport # 

Methods

pretty :: ModuleReexport -> Doc #

Pretty Mixin # 

Methods

pretty :: Mixin -> Doc #

Pretty ExeDependency # 

Methods

pretty :: ExeDependency -> Doc #

Pretty Dependency # 

Methods

pretty :: Dependency -> Doc #

Pretty MungedPackageName # 
Pretty AbiDependency # 

Methods

pretty :: AbiDependency -> Doc #

Pretty LegacyExeDependency # 
Pretty LibVersionInfo # 

Methods

pretty :: LibVersionInfo -> Doc #

Pretty FlagName # 

Methods

pretty :: FlagName -> Doc #

Pretty ExposedModule # 

Methods

pretty :: ExposedModule -> Doc #

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

Methods

pretty :: Identity a -> Doc #

Pretty a => Pretty (MQuoted a) # 

Methods

pretty :: MQuoted a -> Doc #

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

Methods

pretty :: List sep b a -> Doc #

prettyShow :: Pretty a => a -> String #

defaultStyle :: Style #

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

flatStyle :: Style #

A style for rendering all on one line.

Utilities

showFreeText :: String -> Doc #

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

indentWith :: Int #

the indentation used for pretty printing

Deprecated

type Separator = [Doc] -> Doc #