|
Distribution.ParseUtils | Portability | portable | Stability | alpha | Maintainer | libraries@haskell.org |
|
|
|
Description |
Utilities for parsing PackageDescription and InstalledPackageInfo.
|
|
Synopsis |
|
|
|
Documentation |
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
Field descriptor. The parameter a parameterizes over where the field's
value is stored in.
| Constructors | FieldDescr | | fieldName :: String | | fieldGet :: a -> Doc | | fieldSet :: LineNo -> String -> a -> ParseResult a | fieldSet n str x Parses the field value from the given input
string str and stores the result in x if the parse was
successful. Otherwise, reports an error on line number n.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
parse a module name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:: | | => ReadP r b | | -> ReadP r a | The parser for the stuff between commas
| -> ReadP r [a] | |
|
|
|
:: | | => ReadP r a | The parser for the stuff between commas
| -> ReadP r [a] | |
|
|
|
:: | | => ReadP r a | The parser for the stuff between commas
| -> ReadP r [a] | |
|
|
|
|
|
|
|
|
|
Pretty-print free-format text, ensuring that it is vertically aligned,
and with blank lines replaced by dots for correct re-parsing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The type of a function which, given a name-value pair of an
unrecognized field, and the current structure being built,
decides whether to incorporate the unrecognized field
(by returning Just x, where x is a possibly modified version
of the structure being built), or not (by returning Nothing).
|
|
|
A default unrecognized field parser which simply returns Nothing,
i.e. ignores all unrecognized fields, so warnings will be generated.
|
|
|
A default unrecognized field parser which silently (i.e. no
warnings will be generated) ignores unrecognized fields, by
returning the structure being built unmodified.
|
|
Produced by Haddock version 2.3.0 |