Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getSDistTarball :: (StackM env m, HasEnvConfig env) => Maybe PvpBounds -> Path Abs Dir -> m (FilePath, ByteString, Maybe (PackageIdentifier, ByteString))
- checkSDistTarball :: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) => SDistOpts -> Path Abs File -> m ()
- checkSDistTarball' :: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) => SDistOpts -> String -> ByteString -> m ()
- data SDistOpts = SDistOpts {}
Documentation
:: (StackM env m, HasEnvConfig env) | |
=> Maybe PvpBounds | Override Config value |
-> Path Abs Dir | Path to local package |
-> m (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.
:: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) | |
=> SDistOpts | The configuration of what to check |
-> Path Abs File | Absolute path to tarball |
-> m () |
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.
:: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) | |
=> SDistOpts | |
-> String | Tarball name |
-> ByteString | Tarball contents as a byte string |
-> m () |
Version of checkSDistTarball
that first saves lazy bytestring to
temporary directory and then calls checkSDistTarball
on it.
Special exception to throw when you want to fail because of bad results of package check.
SDistOpts | |
|