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

Defined in Distribution.Text

Methods

disp :: Bool -> Doc Source #

parse :: ReadP r Bool Source #

Text Int Source # 
Instance details

Defined in Distribution.Text

Methods

disp :: Int -> Doc Source #

parse :: ReadP r Int Source #

Text Version Source # 
Instance details

Defined in Distribution.Text

Text Version Source # 
Instance details

Defined in Distribution.Types.Version

Text VersionRange Source # 
Instance details

Defined in Distribution.Types.VersionRange

Text RepoType Source # 
Instance details

Defined in Distribution.Types.SourceRepo

Text RepoKind Source # 
Instance details

Defined in Distribution.Types.SourceRepo

Text PkgconfigName Source # 
Instance details

Defined in Distribution.Types.PkgconfigName

Text ForeignLibType Source # 
Instance details

Defined in Distribution.Types.ForeignLibType

Text ForeignLibOption Source # 
Instance details

Defined in Distribution.Types.ForeignLibOption

Text ExecutableScope Source # 
Instance details

Defined in Distribution.Types.ExecutableScope

Text ComponentId Source # 
Instance details

Defined in Distribution.Types.ComponentId

Text BuildType Source # 
Instance details

Defined in Distribution.Types.BuildType

Text AbiHash Source # 
Instance details

Defined in Distribution.Types.AbiHash

Text Platform Source # 
Instance details

Defined in Distribution.System

Text Arch Source # 
Instance details

Defined in Distribution.System

Methods

disp :: Arch -> Doc Source #

parse :: ReadP r Arch Source #

Text OS Source # 
Instance details

Defined in Distribution.System

Methods

disp :: OS -> Doc Source #

parse :: ReadP r OS Source #

Text ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Text ModuleRenaming Source # 
Instance details

Defined in Distribution.Types.ModuleRenaming

Text IncludeRenaming Source # 
Instance details

Defined in Distribution.Types.IncludeRenaming

Text TestType Source # 
Instance details

Defined in Distribution.Types.TestType

Text PkgconfigDependency Source # 
Instance details

Defined in Distribution.Types.PkgconfigDependency

Text BenchmarkType Source # 
Instance details

Defined in Distribution.Types.BenchmarkType

Text License Source # 
Instance details

Defined in Distribution.License

Text KnownExtension Source # 
Instance details

Defined in Language.Haskell.Extension

Text Extension Source # 
Instance details

Defined in Language.Haskell.Extension

Text Language Source # 
Instance details

Defined in Language.Haskell.Extension

Text AbiTag Source # 
Instance details

Defined in Distribution.Compiler

Text CompilerId Source # 
Instance details

Defined in Distribution.Compiler

Text CompilerFlavor Source # 
Instance details

Defined in Distribution.Compiler

Text PackageName Source # 
Instance details

Defined in Distribution.Types.PackageName

Text UnqualComponentName Source # 
Instance details

Defined in Distribution.Types.UnqualComponentName

Text ComponentName Source # 
Instance details

Defined in Distribution.Types.ComponentName

Text PackageIdentifier Source # 
Instance details

Defined in Distribution.Types.PackageId

Text DefUnitId Source # 
Instance details

Defined in Distribution.Types.UnitId

Text UnitId Source # 
Instance details

Defined in Distribution.Types.UnitId

Text Module Source # 
Instance details

Defined in Distribution.Types.Module

Text OpenModule Source # 
Instance details

Defined in Distribution.Backpack

Text OpenUnitId Source # 
Instance details

Defined in Distribution.Backpack

Text ModuleReexport Source # 
Instance details

Defined in Distribution.Types.ModuleReexport

Text Mixin Source # 
Instance details

Defined in Distribution.Types.Mixin

Text ExeDependency Source # 
Instance details

Defined in Distribution.Types.ExeDependency

Text Dependency Source # 
Instance details

Defined in Distribution.Types.Dependency

Text MungedPackageName Source # 
Instance details

Defined in Distribution.Types.MungedPackageName

Text MungedPackageId Source # 
Instance details

Defined in Distribution.Types.MungedPackageId

Text AbiDependency Source # 
Instance details

Defined in Distribution.Types.AbiDependency

Text LegacyExeDependency Source # 
Instance details

Defined in Distribution.Types.LegacyExeDependency

Text LibVersionInfo Source # 
Instance details

Defined in Distribution.Types.ForeignLib

Text FlagName Source # 
Instance details

Defined in Distribution.Types.GenericPackageDescription

Text ExposedModule Source # 
Instance details

Defined in Distribution.Types.ExposedModule

Text TestShowDetails Source # 
Instance details

Defined in Distribution.Simple.Setup

Text HaddockTarget Source # 
Instance details

Defined in Distribution.Simple.Setup

Text a => Text (Identity a) Source # 
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 #