Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data SDistOpts = SDistOpts {}
- sdistCmd :: SDistOpts -> RIO Runner ()
- getSDistTarball :: HasEnvConfig env => Maybe PvpBounds -> Path Abs Dir -> RIO env (FilePath, ByteString, Maybe (PackageIdentifier, ByteString))
- checkSDistTarball :: HasEnvConfig env => SDistOpts -> Path Abs File -> RIO env ()
- checkSDistTarball' :: HasEnvConfig env => SDistOpts -> String -> ByteString -> RIO env ()
- readLocalPackage :: HasEnvConfig env => Path Abs Dir -> RIO env LocalPackage
Documentation
Type representing command line options for stack sdist
command.
SDistOpts | |
|
:: HasEnvConfig env | |
=> Maybe PvpBounds | Override Config value |
-> Path Abs Dir | Path to local package |
-> RIO env (FilePath, ByteString, Maybe (PackageIdentifier, ByteString)) | Filename, tarball contents, and option Cabal file revision to upload |
Given the path to a local package, creates its source distribution tarball.
While this yields a FilePath
, the name of the tarball, this tarball is not
written to the disk and instead yielded as a lazy bytestring.
:: HasEnvConfig env | |
=> SDistOpts | The configuration of what to check |
-> Path Abs File | Absolute path to tarball |
-> RIO env () |
Check package in given tarball. This will log all warnings and will throw an exception in case of critical errors.
Note that we temporarily decompress the archive to analyze it.
:: HasEnvConfig env | |
=> SDistOpts | |
-> String | Tarball name |
-> ByteString | Tarball contents as a byte string |
-> RIO env () |
Version of checkSDistTarball
that first saves lazy bytestring to
temporary directory and then calls checkSDistTarball
on it.
readLocalPackage :: HasEnvConfig env => Path Abs Dir -> RIO env LocalPackage Source #
Read in a LocalPackage
config. This makes some default decisions about
LocalPackage
fields that might not be appropriate for other use-cases.