Cabal-2.2.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 Source #

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

Methods

disp :: a -> Doc Source #

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

parse :: ReadP r a Source #

parse :: Parsec a => ReadP r a Source #

Instances
Text Bool # 
Instance details

Defined in Distribution.Text

Methods

disp :: Bool -> Doc Source #

parse :: ReadP r Bool Source #

Text Int # 
Instance details

Defined in Distribution.Text

Methods

disp :: Int -> Doc Source #

parse :: ReadP r Int Source #

Text Version # 
Instance details

Defined in Distribution.Text

Text Version # 
Instance details

Defined in Distribution.Types.Version

Text VersionRange # 
Instance details

Defined in Distribution.Types.VersionRange

Text RepoType # 
Instance details

Defined in Distribution.Types.SourceRepo

Text RepoKind # 
Instance details

Defined in Distribution.Types.SourceRepo

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

Text Platform # 
Instance details

Defined in Distribution.System

Text Arch # 
Instance details

Defined in Distribution.System

Methods

disp :: Arch -> Doc Source #

parse :: ReadP r Arch Source #

Text OS # 
Instance details

Defined in Distribution.System

Methods

disp :: OS -> Doc Source #

parse :: ReadP r OS Source #

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

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

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

Text AbiTag # 
Instance details

Defined in Distribution.Compiler

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

Text Module # 
Instance details

Defined in Distribution.Types.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

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

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 Source #

parse :: ReadP r (Identity a) 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.

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

Pretty-prints with the default style.

flatStyle :: Style Source #

A style for rendering all on one line.

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