| Cabal-1.8.0.6: A framework for packaging Haskell software | Contents | Index

Distribution.Simple.Build

Portability | portable
Maintainer | cabal-devel@haskell.org

Description
This is the entry point to actually building the modules in a package. It doesn't actually do much itself, most of the work is delegated to compiler-specific actions. It does do some non-compiler specific bits like running pre-processors.
Synopsis

build :: PackageDescription -> LocalBuildInfo -> BuildFlags -> [PPSuffixHandler] -> IO ()
initialBuildSteps :: FilePath -> PackageDescription -> LocalBuildInfo -> Verbosity -> [PPSuffixHandler] -> IO ()
writeAutogenFiles :: Verbosity -> PackageDescription -> LocalBuildInfo -> IO ()

Documentation
build

:: PackageDescription | mostly information from the .cabal file
-> LocalBuildInfo | Configuration information
-> BuildFlags | Flags that the user passed to build
-> [PPSuffixHandler] | preprocessors to run before compiling
-> IO () |
Build the libraries and executables in this package.

initialBuildSteps

:: FilePath | dist prefix
-> PackageDescription | mostly information from the .cabal file
-> LocalBuildInfo | Configuration information
-> Verbosity | The verbosity to use
-> [PPSuffixHandler] | preprocessors to run before compiling
-> IO () |

writeAutogenFiles :: Verbosity -> PackageDescription -> LocalBuildInfo -> IO ()
Generate and write out the Paths_pkg.hs and cabal_macros.h files
Produced by Haddock version 2.6.1