Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Cabal-syntax Distribution.Compiler PerCompilerFlavor carries only info per GHC and GHCJS Cabal parses only ghc-options and ghcjs-options, others are omitted.
PerCompilerFlavor :: v -> v -> PerCompilerFlavor vCabal-syntax Distribution.Compiler No documentation available.
-
Cabal-syntax Distribution.FieldGrammar No documentation available.
type
ParsecFieldGrammar' a = ParsecFieldGrammar a aCabal-syntax Distribution.FieldGrammar No documentation available.
-
Cabal-syntax Distribution.FieldGrammar No documentation available.
type
PrettyFieldGrammar' a = PrettyFieldGrammar a aCabal-syntax Distribution.FieldGrammar No documentation available.
module Distribution.FieldGrammar.
Parsec This module provides a FieldGrammarParser, one way to parse .cabal -like files. Fields can be specified multiple times in the .cabal files. The order of such entries is important, but the mutual ordering of different fields is not.Also conditional sections are considered after non-conditional data. The example of this silent-commutation quirk is the fact that
buildable: True if os(linux) buildable: False
andif os(linux) buildable: False buildable: True
behave the same! This is the limitation of GeneralPackageDescription structure. So we transform the list of fields [Field ann] into a map of grouped ordinary fields and a list of lists of sections: Fields ann = Map FieldName [NamelessField ann] and [[Section ann]]. We need list of list of sections, because we need to distinguish situations where there are fields in between. For exampleif flag(bytestring-lt-0_10_4) build-depends: bytestring < 0.10.4 default-language: Haskell2020 else build-depends: bytestring >= 0.10.4
is obviously invalid specification. We can parse Fields like we parse aeson objects, yet we use slightly higher-level API, so we can process unspecified fields, to report unknown fields and save custom x-fields.-
Cabal-syntax Distribution.FieldGrammar.Parsec No documentation available.
module Distribution.FieldGrammar.
Pretty No documentation available.
-
Cabal-syntax Distribution.FieldGrammar.Pretty No documentation available.