Cabal-1.3.10: A framework for packaging Haskell softwareContentsIndex
Distribution.Simple.SrcDist
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Contents
The top level action
Parts of sdist
Snaphots
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 ()
printPackageProblems :: Verbosity -> PackageDescription -> IO ()
prepareTree :: Verbosity -> PackageDescription -> Maybe LocalBuildInfo -> FilePath -> [PPSuffixHandler] -> IO FilePath
createArchive :: Verbosity -> PackageDescription -> Maybe LocalBuildInfo -> FilePath -> FilePath -> IO FilePath
prepareSnapshotTree :: Verbosity -> PackageDescription -> Maybe LocalBuildInfo -> FilePath -> [PPSuffixHandler] -> CalendarTime -> IO FilePath
snapshotVersion :: CalendarTime -> Version -> Version
dateToSnapshotNumber :: CalendarTime -> Int
The top level action
sdist
:: 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.
Parts of sdist
printPackageProblems :: Verbosity -> PackageDescription -> IO ()
prepareTree
:: Verbosityverbosity
-> PackageDescriptioninfo from the cabal file
-> Maybe LocalBuildInfo
-> FilePathsource tree to populate
-> [PPSuffixHandler]extra preprocessors (includes suffixes)
-> IO FilePaththe name of the dir created and populated
Prepare a directory tree of source files.
createArchive
:: Verbosityverbosity
-> PackageDescriptioninfo from cabal file
-> 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.
Snaphots
prepareSnapshotTree
:: Verbosityverbosity
-> PackageDescriptioninfo from the cabal file
-> Maybe LocalBuildInfo
-> FilePathsource tree to populate
-> [PPSuffixHandler]extra preprocessors (includes suffixes)
-> CalendarTimesnapshot date
-> IO FilePaththe resulting temp dir
Prepare a directory tree of source files for a snapshot version with the given date.
snapshotVersion :: CalendarTime -> Version -> Version
Modifies a Version by appending a snapshot number corresponding to the given date.
dateToSnapshotNumber :: CalendarTime -> Int
Given a date produce a corresponding integer representation. For example given a date 18032008 produce the number 20080318.
Produced by Haddock version 0.8