Cabal-2.0.0.2: 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 is 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 #

Minimal complete definition

disp, parse

Methods

disp :: a -> Doc Source #

parse :: ReadP r a Source #

Instances
Text Bool Source # 
Instance details

Methods

disp :: Bool -> Doc Source #

parse :: ReadP r Bool Source #

Text Int Source # 
Instance details

Methods

disp :: Int -> Doc Source #

parse :: ReadP r Int Source #

Text Version Source # 
Instance details
Text Platform Source # 
Instance details
Text Arch Source # 
Instance details

Methods

disp :: Arch -> Doc Source #

parse :: ReadP r Arch Source #

Text OS Source # 
Instance details

Methods

disp :: OS -> Doc Source #

parse :: ReadP r OS Source #

Text BuildType Source # 
Instance details
Text ExecutableScope Source # 
Instance details
Text ForeignLibOption Source # 
Instance details
Text ForeignLibType Source # 
Instance details
Text RepoType Source # 
Instance details
Text RepoKind Source # 
Instance details
Text PkgconfigName Source # 
Instance details
Text ComponentId Source # 
Instance details
Text AbiHash Source # 
Instance details
Text ModuleName Source # 
Instance details
Text ModuleRenaming Source # 
Instance details
Text IncludeRenaming Source # 
Instance details
Text VersionRange Source # 
Instance details
Text Version Source # 
Instance details
Text TestType Source # 
Instance details
Text PkgconfigDependency Source # 
Instance details
Text BenchmarkType Source # 
Instance details
Text License Source # 
Instance details
Text KnownExtension Source # 
Instance details
Text Extension Source # 
Instance details
Text Language Source # 
Instance details
Text AbiTag Source # 
Instance details
Text CompilerId Source # 
Instance details
Text CompilerFlavor Source # 
Instance details
Text PackageName Source # 
Instance details
Text UnqualComponentName Source # 
Instance details
Text ComponentName Source # 
Instance details
Text PackageIdentifier Source # 
Instance details
Text DefUnitId Source # 
Instance details
Text UnitId Source #

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

Instance details
Text Module Source # 
Instance details
Text OpenModule Source # 
Instance details
Text OpenUnitId Source # 
Instance details
Text ModuleReexport Source # 
Instance details
Text Mixin Source # 
Instance details
Text ExeDependency Source # 
Instance details
Text Dependency Source # 
Instance details
Text MungedPackageName Source # 
Instance details
Text MungedPackageId Source # 
Instance details
Text LegacyExeDependency Source # 
Instance details
Text LibVersionInfo Source # 
Instance details
Text AbiDependency Source # 
Instance details
Text ExposedModule Source # 
Instance details
Text TestShowDetails Source # 
Instance details
Text RelaxedDep Source # 
Instance details

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 #