Cabal-1.24.2.0: A framework for packaging Haskell software

CopyrightDuncan Coutts 2007
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

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 # 

Methods

disp :: Bool -> Doc Source #

parse :: ReadP r Bool Source #

Text Int Source # 

Methods

disp :: Int -> Doc Source #

parse :: ReadP r Int Source #

Text Version Source # 
Text ModuleName Source # 
Text Platform Source # 
Text Arch Source # 

Methods

disp :: Arch -> Doc Source #

parse :: ReadP r Arch Source #

Text OS Source # 

Methods

disp :: OS -> Doc Source #

parse :: ReadP r OS Source #

Text VersionRange Source # 
Text License Source # 
Text AbiHash Source # 
Text Dependency Source # 
Text UnitId Source # 
Text ComponentId Source # 
Text PackageIdentifier Source # 
Text PackageName Source # 
Text KnownExtension Source # 
Text Extension Source # 
Text Language Source # 
Text AbiTag Source # 
Text CompilerId Source # 
Text CompilerFlavor Source # 
Text RepoType Source # 
Text RepoKind Source # 
Text BenchmarkType Source # 
Text TestType Source # 
Text ModuleReexport Source # 
Text ModuleRenaming Source # 
Text BuildType Source # 
Text ExposedModule Source # 
Text OriginalModule Source # 
Text TestShowDetails Source # 
Text AllowNewerDep Source # 

defaultStyle :: Style Source #

The default rendering style used in Cabal for console output.

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