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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

ModuleCabal-syntax-3.16.0.0Haskell2010

Distribution.PackageDescription.Parsec

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

  • 1 type
  • 5 values

Package descriptions

2 declarations

Parsing

newtypenewtype ParseResult a
#

A monad with failure and accumulating errors and warnings.

Instances3Monad, Functor, Applicative

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