ModuleCabal-3.18.1.0Haskell2010
Distribution.Simple.PackageDescription
This defines parsers for the .cabal format
- 5 values
- PackageCabal-3.18.1.0
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePackageDescription.hs
Read and Parse files
2 declarationsvalue
readHookedBuildInfo :: Verbosity-> Maybe (SymbolicPath CWD ('Dir Pkg))working directory
-> SymbolicPath Pkg 'File-> IO HookedBuildInfo
Utility Parsing function
3 declarationsvalue
parseString :: (ByteString -> ParseResult CabalFileSource a)File contents to final value parser
-> VerbosityVerbosity level
-> StringFile name
-> ByteString-> IO a
value
readAndParseFile :: (ByteString -> ParseResult CabalFileSource a)File contents to final value parser
-> VerbosityVerbosity level
-> Maybe (SymbolicPath CWD ('Dir Pkg))Working directory
-> SymbolicPath Pkg 'FileFile to read
-> IO a
Helper combinator to do parsing plumbing for files.
Given a parser and a filename, return the parse of the file, after checking if the file exists.
Argument order is chosen to encourage partial application.
Collapse duplicate experimental feature warnings into single warning, with a count of further sites