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

Documentation

class Text a where

Minimal complete definition

disp, parse

Methods

disp :: a -> Doc

parse :: ReadP r a

Instances

Text Bool 

Methods

disp :: Bool -> Doc

parse :: ReadP r Bool

Text Version 

Methods

disp :: Version -> Doc

parse :: ReadP r Version

Text KnownExtension 
Text Extension 
Text Language 

Methods

disp :: Language -> Doc

parse :: ReadP r Language

Text VersionRange 
Text AbiTag 

Methods

disp :: AbiTag -> Doc

parse :: ReadP r AbiTag

Text CompilerId 
Text CompilerFlavor 
Text License 

Methods

disp :: License -> Doc

parse :: ReadP r License

Text AbiHash 

Methods

disp :: AbiHash -> Doc

parse :: ReadP r AbiHash

Text Dependency 
Text UnitId 

Methods

disp :: UnitId -> Doc

parse :: ReadP r UnitId

Text ComponentId 
Text PackageIdentifier 
Text PackageName 
Text ModuleName 
Text Platform 

Methods

disp :: Platform -> Doc

parse :: ReadP r Platform

Text Arch 

Methods

disp :: Arch -> Doc

parse :: ReadP r Arch

Text OS 

Methods

disp :: OS -> Doc

parse :: ReadP r OS

Text RepoType 

Methods

disp :: RepoType -> Doc

parse :: ReadP r RepoType

Text RepoKind 

Methods

disp :: RepoKind -> Doc

parse :: ReadP r RepoKind

Text BenchmarkType 
Text TestType 

Methods

disp :: TestType -> Doc

parse :: ReadP r TestType

Text ModuleReexport 
Text ModuleRenaming 
Text BuildType 
Text ExposedModule 
Text OriginalModule 
Text TestShowDetails 

display :: Text a => a -> String