Cabal-1.2.3.0: A framework for packaging Haskell softwareSource codeContentsIndex
Distribution.Simple.SrcDist
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Description
Implements the "./setup sdist" command, which creates a source distribution for this package. That is, packs up the source code into a tarball.
Synopsis
sdist :: PackageDescription -> Maybe LocalBuildInfo -> SDistFlags -> FilePath -> FilePath -> [PPSuffixHandler] -> IO ()
createArchive :: PackageDescription -> Verbosity -> Maybe LocalBuildInfo -> FilePath -> FilePath -> IO FilePath
prepareTree :: PackageDescription -> Verbosity -> Maybe LocalBuildInfo -> Bool -> FilePath -> [PPSuffixHandler] -> Int -> IO FilePath
tarBallName :: PackageDescription -> FilePath
copyFileTo :: Verbosity -> FilePath -> FilePath -> IO ()
Documentation
sdistSource
:: PackageDescriptioninformation from the tarball
-> Maybe LocalBuildInfoInformation from configure
-> SDistFlagsverbosity & snapshot
-> FilePathbuild prefix (temp dir)
-> FilePathTargetPrefix
-> [PPSuffixHandler]extra preprocessors (includes suffixes)
-> IO ()
Create a source distribution.
createArchiveSource
:: PackageDescriptioninfo from cabal file
-> Verbosityverbosity
-> Maybe LocalBuildInfoinfo from configure
-> FilePathsource tree to archive
-> FilePathname of archive to create
-> IO FilePath
Create an archive from a tree of source files, and clean up the tree.
prepareTreeSource
:: PackageDescriptioninfo from the cabal file
-> Verbosityverbosity
-> Maybe LocalBuildInfo
-> Boolsnapshot
-> FilePathsource tree to populate
-> [PPSuffixHandler]extra preprocessors (includes suffixes)
-> Intdate
-> IO FilePath
Prepare a directory tree of source files.
tarBallName :: PackageDescription -> FilePathSource
The file name of the tarball
copyFileTo :: Verbosity -> FilePath -> FilePath -> IO ()Source
Produced by Haddock version 0.8