Distribution.PackageDescription.PrettyPrint

Cabal-3.2.0.0: A framework for packaging Haskell software

Copyright | Jürgen Nicklisch-Franken 2010
License | BSD3
Maintainer | cabal-devel@haskell.org
Stability | provisional
Portability | portable
Safe Haskell | None
Language | Haskell2010

Distribution.PackageDescription.PrettyPrint

Contents

- Generic package descriptions
- Package descriptions
  - Supplementary build information

Description

Pretty printing for cabal files

Synopsis

- writeGenericPackageDescription :: FilePath -> GenericPackageDescription -> NoCallStackIO ()
- showGenericPackageDescription :: GenericPackageDescription -> String
- ppGenericPackageDescription :: CabalSpecVersion -> GenericPackageDescription -> [PrettyField ()]
- writePackageDescription :: FilePath -> PackageDescription -> NoCallStackIO ()
- showPackageDescription :: PackageDescription -> String
- writeHookedBuildInfo :: FilePath -> HookedBuildInfo -> NoCallStackIO ()
- showHookedBuildInfo :: HookedBuildInfo -> String

# Generic package descriptions

writeGenericPackageDescription :: FilePath -> GenericPackageDescription -> NoCallStackIO () #

Writes a .cabal file from a generic package description

showGenericPackageDescription :: GenericPackageDescription -> String #

Writes a generic package description to a string

ppGenericPackageDescription :: CabalSpecVersion -> GenericPackageDescription -> [PrettyField ()] #

Convert a generic package description to `PrettyField`s.

# Package descriptions

writePackageDescription :: FilePath -> PackageDescription -> NoCallStackIO () #

Since: Cabal-2.0.0.2

showPackageDescription :: PackageDescription -> String #

Since: Cabal-2.0.0.2

## Supplementary build information

writeHookedBuildInfo :: FilePath -> HookedBuildInfo -> NoCallStackIO () #

Since: Cabal-2.0.0.2

showHookedBuildInfo :: HookedBuildInfo -> String #

Since: Cabal-2.0.0.2