Cabal-2.1.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 # 
Instance details

Methods

pretty :: Bool -> Doc Source #

Pretty Int # 
Instance details

Methods

pretty :: Int -> Doc Source #

Pretty BuildType # 
Instance details

Methods

pretty :: BuildType -> Doc Source #

Pretty ExecutableScope # 
Instance details
Pretty ForeignLibOption # 
Instance details
Pretty ForeignLibType # 
Instance details
Pretty Version # 
Instance details

Methods

pretty :: Version -> Doc Source #

Pretty VersionRange # 
Instance details
Pretty PkgconfigName # 
Instance details
Pretty ComponentId # 
Instance details
Pretty ModuleName # 
Instance details
Pretty ModuleRenaming # 
Instance details
Pretty IncludeRenaming # 
Instance details
Pretty RepoType # 
Instance details

Methods

pretty :: RepoType -> Doc Source #

Pretty RepoKind # 
Instance details

Methods

pretty :: RepoKind -> Doc Source #

Pretty Platform # 
Instance details

Methods

pretty :: Platform -> Doc Source #

Pretty Arch # 
Instance details

Methods

pretty :: Arch -> Doc Source #

Pretty OS # 
Instance details

Methods

pretty :: OS -> Doc Source #

Pretty TestType # 
Instance details

Methods

pretty :: TestType -> Doc Source #

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

Methods

pretty :: License -> Doc Source #

Pretty KnownExtension # 
Instance details
Pretty Extension # 
Instance details

Methods

pretty :: Extension -> Doc Source #

Pretty Language # 
Instance details

Methods

pretty :: Language -> Doc Source #

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

Methods

pretty :: FreeText -> Doc Source #

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

Methods

pretty :: Token' -> Doc Source #

Pretty Token # 
Instance details

Methods

pretty :: Token -> Doc Source #

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

Methods

pretty :: DefUnitId -> Doc Source #

Pretty UnitId #

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

Instance details

Methods

pretty :: UnitId -> Doc Source #

Pretty Module # 
Instance details

Methods

pretty :: Module -> Doc Source #

Pretty ModuleReexport # 
Instance details
Pretty Mixin # 
Instance details

Methods

pretty :: Mixin -> Doc Source #

Pretty ExeDependency # 
Instance details
Pretty Dependency # 
Instance details
Pretty LegacyExeDependency # 
Instance details
Pretty LibVersionInfo # 
Instance details
Pretty FlagName # 
Instance details

Methods

pretty :: FlagName -> Doc Source #

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

Methods

pretty :: Identity a -> Doc Source #

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

Methods

pretty :: MQuoted a -> Doc Source #

(Newtype b a, Sep sep, Pretty b) => Pretty (List sep b a) # 
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 #