Cabal-1.22.5.0: A framework for packaging Haskell software

Copyright | Duncan Coutts 2007
Maintainer | cabal-devel@haskell.org
Portability | portable
Safe Haskell | Safe
Language | Haskell98

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 |
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

simpleParse :: Text a => String -> Maybe a Source