| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distribution.Parsec.Newtypes
Description
This module provides newtype wrappers to be used with Distribution.FieldGrammar.
Synopsis
- alaList :: sep -> [a] -> List sep (Identity a) a
- alaList' :: sep -> (a -> b) -> [a] -> List sep b a
- data CommaVCat = CommaVCat
- data CommaFSep = CommaFSep
- data VCat = VCat
- data FSep = FSep
- data NoCommaFSep = NoCommaFSep
- data List sep b a
- newtype SpecVersion = SpecVersion {}
- newtype TestedWith = TestedWith {}
- newtype Token = Token {}
- newtype Token' = Token' {}
- newtype MQuoted a = MQuoted {
- getMQuoted :: a
- newtype FreeText = FreeText {}
- newtype FilePathNT = FilePathNT {}
List
Modifiers
data NoCommaFSep Source #
Paragraph fill list without commas. Displayed with fsep.
Constructors
| NoCommaFSep |
Type
List separated with optional commas. Displayed with sep, arguments of
type a are parsed and pretty-printed as b.
Version
newtype SpecVersion Source #
Version range or just version
Constructors
| SpecVersion | |
Fields | |
Instances
| Parsec SpecVersion # | |
| Pretty SpecVersion # | |
Methods pretty :: SpecVersion -> Doc Source # | |
| Newtype SpecVersion (Either Version VersionRange) # | |
Methods pack :: Either Version VersionRange -> SpecVersion Source # unpack :: SpecVersion -> Either Version VersionRange Source # | |
newtype TestedWith Source #
Version range or just version
Constructors
| TestedWith | |
Fields | |
Instances
| Parsec TestedWith # | |
| Pretty TestedWith # | |
Methods pretty :: TestedWith -> Doc Source # | |
| Newtype TestedWith (CompilerFlavor, VersionRange) # | |
Methods pack :: (CompilerFlavor, VersionRange) -> TestedWith Source # unpack :: TestedWith -> (CompilerFlavor, VersionRange) Source # | |
Identifiers
Haskell string or [^ ,]+
Haskell string or [^ ]+
Either "quoted" or un-quoted.
Constructors
| MQuoted | |
Fields
| |
This is almost , but itmany anyChar
- trims whitespace from ends of the lines,
- converts lines with only single dot into empty line.
Constructors
| FreeText | |
Fields | |
newtype FilePathNT Source #
Filepath are parsed as Token.
Constructors
| FilePathNT | |
Fields | |
Instances
| Parsec FilePathNT # | |
| Pretty FilePathNT # | |
Methods pretty :: FilePathNT -> Doc Source # | |
| Newtype FilePathNT String # | |