Cabal-2.4.0.1: A framework for packaging Haskell software

CopyrightDuncan Coutts 2007
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Text

Description

This defines a Text class which is a bit like the Read and Show classes. The difference is that it uses a modern pretty printer and parser system and the format is not expected to be Haskell concrete syntax but rather the external human readable representation used by Cabal.

Synopsis

Documentation

class Text a where #

Note: this class will soon be deprecated. It's not yet, so that we are -Wall clean.

Methods

disp :: a -> Doc #

disp :: Pretty a => a -> Doc #

parse :: ReadP r a #

parse :: Parsec a => ReadP r a #

Instances
Text Bool # 
Instance details

Defined in Distribution.Text

Methods

disp :: Bool -> Doc #

parse :: ReadP r Bool #

Text Int # 
Instance details

Defined in Distribution.Text

Methods

disp :: Int -> Doc #

parse :: ReadP r Int #

Text Version # 
Instance details

Defined in Distribution.Text

Methods

disp :: Version -> Doc #

parse :: ReadP r Version #

Text Version # 
Instance details

Defined in Distribution.Types.Version

Methods

disp :: Version -> Doc #

parse :: ReadP r Version #

Text VersionRange # 
Instance details

Defined in Distribution.Types.VersionRange

Text RepoType # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

disp :: RepoType -> Doc #

parse :: ReadP r RepoType #

Text RepoKind # 
Instance details

Defined in Distribution.Types.SourceRepo

Methods

disp :: RepoKind -> Doc #

parse :: ReadP r RepoKind #

Text PkgconfigName # 
Instance details

Defined in Distribution.Types.PkgconfigName

Text ForeignLibType # 
Instance details

Defined in Distribution.Types.ForeignLibType

Text ForeignLibOption # 
Instance details

Defined in Distribution.Types.ForeignLibOption

Text ExecutableScope # 
Instance details

Defined in Distribution.Types.ExecutableScope

Text ComponentId # 
Instance details

Defined in Distribution.Types.ComponentId

Text BuildType # 
Instance details

Defined in Distribution.Types.BuildType

Text AbiHash # 
Instance details

Defined in Distribution.Types.AbiHash

Methods

disp :: AbiHash -> Doc #

parse :: ReadP r AbiHash #

Text Platform # 
Instance details

Defined in Distribution.System

Methods

disp :: Platform -> Doc #

parse :: ReadP r Platform #

Text Arch # 
Instance details

Defined in Distribution.System

Methods

disp :: Arch -> Doc #

parse :: ReadP r Arch #

Text OS # 
Instance details

Defined in Distribution.System

Methods

disp :: OS -> Doc #

parse :: ReadP r OS #

Text ModuleName # 
Instance details

Defined in Distribution.ModuleName

Text ModuleRenaming # 
Instance details

Defined in Distribution.Types.ModuleRenaming

Text IncludeRenaming # 
Instance details

Defined in Distribution.Types.IncludeRenaming

Text TestType # 
Instance details

Defined in Distribution.Types.TestType

Methods

disp :: TestType -> Doc #

parse :: ReadP r TestType #

Text PkgconfigDependency # 
Instance details

Defined in Distribution.Types.PkgconfigDependency

Text BenchmarkType # 
Instance details

Defined in Distribution.Types.BenchmarkType

Text License # 
Instance details

Defined in Distribution.License

Methods

disp :: License -> Doc #

parse :: ReadP r License #

Text KnownExtension # 
Instance details

Defined in Language.Haskell.Extension

Text Extension # 
Instance details

Defined in Language.Haskell.Extension

Text Language # 
Instance details

Defined in Language.Haskell.Extension

Methods

disp :: Language -> Doc #

parse :: ReadP r Language #

Text AbiTag # 
Instance details

Defined in Distribution.Compiler

Methods

disp :: AbiTag -> Doc #

parse :: ReadP r AbiTag #

Text CompilerId # 
Instance details

Defined in Distribution.Compiler

Text CompilerFlavor # 
Instance details

Defined in Distribution.Compiler

Text PackageName # 
Instance details

Defined in Distribution.Types.PackageName

Text UnqualComponentName # 
Instance details

Defined in Distribution.Types.UnqualComponentName

Text ComponentName # 
Instance details

Defined in Distribution.Types.ComponentName

Text PackageIdentifier # 
Instance details

Defined in Distribution.Types.PackageId

Text DefUnitId # 
Instance details

Defined in Distribution.Types.UnitId

Text UnitId # 
Instance details

Defined in Distribution.Types.UnitId

Methods

disp :: UnitId -> Doc #

parse :: ReadP r UnitId #

Text Module # 
Instance details

Defined in Distribution.Types.Module

Methods

disp :: Module -> Doc #

parse :: ReadP r Module #

Text OpenModule # 
Instance details

Defined in Distribution.Backpack

Text OpenUnitId # 
Instance details

Defined in Distribution.Backpack

Text ModuleReexport # 
Instance details

Defined in Distribution.Types.ModuleReexport

Text Mixin # 
Instance details

Defined in Distribution.Types.Mixin

Methods

disp :: Mixin -> Doc #

parse :: ReadP r Mixin #

Text ExeDependency # 
Instance details

Defined in Distribution.Types.ExeDependency

Text Dependency # 
Instance details

Defined in Distribution.Types.Dependency

Text MungedPackageName # 
Instance details

Defined in Distribution.Types.MungedPackageName

Text MungedPackageId # 
Instance details

Defined in Distribution.Types.MungedPackageId

Text AbiDependency # 
Instance details

Defined in Distribution.Types.AbiDependency

Text LegacyExeDependency # 
Instance details

Defined in Distribution.Types.LegacyExeDependency

Text LibVersionInfo # 
Instance details

Defined in Distribution.Types.ForeignLib

Text FlagName # 
Instance details

Defined in Distribution.Types.GenericPackageDescription

Methods

disp :: FlagName -> Doc #

parse :: ReadP r FlagName #

Text ExposedModule # 
Instance details

Defined in Distribution.Types.ExposedModule

Text TestShowDetails # 
Instance details

Defined in Distribution.Simple.Setup

Text HaddockTarget # 
Instance details

Defined in Distribution.Simple.Setup

Text a => Text (Identity a) # 
Instance details

Defined in Distribution.Text

Methods

disp :: Identity a -> Doc #

parse :: ReadP r (Identity a) #

defaultStyle :: Style #

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

display :: Text a => a -> String #

Pretty-prints with the default style.

flatStyle :: Style #

A style for rendering all on one line.

stdParse :: Text ver => (ver -> String -> res) -> ReadP r res #