HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleCabal-syntax-3.18.1.0Haskell2010

Distribution.PackageDescription.Parsec

This defined parsers and partial pretty printers for the .cabal format.

  • 2 types
  • 6 values

Package descriptions

2 declarations

Parsing

newtypenewtype ParseResult src a
#

A monad with failure and accumulating errors and warnings.

Instances3Monad, Functor, Applicative
datadata PSource src
#

The source of a parse error

Instances8Functor, Eq, Ord, Show, Generic, NFData, …

New-style spec-version

1 declaration

Quickly scan new-style spec-version

A new-style spec-version declaration begins the .cabal file and follow the following case-insensitive grammar (expressed in RFC5234 ABNF):

newstyle-spec-version-decl = "cabal-version" *WS ":" *WS newstyle-spec-version *WS

spec-version               = NUM "." NUM [ "." NUM ]

NUM    = DIGIT0 / DIGITP 1*DIGIT0
DIGIT0 = %x30-39
DIGITP = %x31-39
WS = %20

Supplementary build information