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

Methods

disp :: a -> Doc

parse :: ReadP r a

Instances

Text Bool |
Text Version |
Text VersionRange |
Text KnownExtension |
Text Extension |
Text Language |
Text AbiTag |
Text CompilerId |
Text CompilerFlavor |
Text License |
Text ModuleName |
Text Dependency |
Text PackageKey |
Text InstalledPackageId |
Text PackageIdentifier |
Text PackageName |
Text Platform |
Text Arch |
Text OS |
Text RepoType |
Text RepoKind |
Text BenchmarkType |
Text TestType |
Text ModuleReexport |
Text ModuleRenaming |
Text BuildType |
Text ExposedModule |
Text OriginalModule |
Text TestShowDetails |

display :: Text a => a -> String

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