Cabal-1.22.6.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.

Documentation

class Text a where Source

Methods

disp :: a -> Doc Source

parse :: ReadP r a Source

Instances

Text Bool Source 
Text Version Source 
Text VersionRange Source 
Text KnownExtension Source 
Text Extension Source 
Text Language Source 
Text AbiTag Source 
Text CompilerId Source 
Text CompilerFlavor Source 
Text License Source 
Text ModuleName Source 
Text Dependency Source 
Text PackageKey Source 
Text InstalledPackageId Source 
Text PackageIdentifier Source 
Text PackageName Source 
Text Platform Source 
Text Arch Source 
Text OS Source 

Methods

disp :: OS -> Doc Source

parse :: ReadP r OS 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 

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