Cabal-1.24.1.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 # 

Methods

disp :: Bool -> Doc Source #

parse :: ReadP r Bool Source #

Text Int # 

Methods

disp :: Int -> Doc Source #

parse :: ReadP r Int Source #

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

Methods

disp :: Arch -> Doc Source #

parse :: ReadP r Arch Source #

Text OS # 

Methods

disp :: OS -> Doc Source #

parse :: ReadP r OS Source #

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

defaultStyle :: Style Source #

The default rendering style used in Cabal for console output.

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