Modulecabal-install-3.18.1.0Haskell2010
Distribution.Client.Init.Format
Pretty printing and field formatting utilities used for file creation.
Synopsis
- value listFieldS
- value field
- value fieldD
- value commentedOutWithComments
- value withComments
- value annNoComments
- value postProcessFieldLines
- value mkLibStanza
- value mkExeStanza
- value mkTestStanza
- value mkPkgDescription
- value mkExtensionsStanza
- value mkGhcOptionsStanza
- value mkRtsOptionsStanza
- Packagecabal-install-3.18.1.0
- Exports14
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceFormat.hs
cabal file formatters
Construct a PrettyField from a field that can be automatically
converted to a Doc via display.
value
fieldD :: FieldNameName of the field
-> DocField contents
-> [String]Comment to explain the field
-> BoolShould the field be included (commented out) even if blank?
-> WriteOpts-> PrettyField FieldAnnotation
Construct a PrettyField from a Doc Flag.
A field annotation instructing the pretty printer to comment out the field and any contents, with no comments.
A field annotation with the specified comment lines.
A field annotation with no comments.