stack-1.3.2: The Haskell Tool Stack

Copyright | (c) FPComplete.com, 2015
License | BSD3
Maintainer | Tim Dysinger <tim@fpcomplete.com>
Stability | experimental
Portability | POSIX
Safe Haskell | None
Language | Haskell2010

Stack.Sig.Sign

Description

Synopsis

- sign :: (MonadIO m, MonadLogger m, MonadMask m) => String -> Path Abs File -> m Signature
- signPackage :: (MonadIO m, MonadLogger m, MonadThrow m) => String -> PackageIdentifier -> Path Abs File -> m Signature
- signTarBytes :: (MonadIO m, MonadLogger m, MonadMask m) => String -> Path Rel File -> ByteString -> m Signature

# Documentation

sign :: (MonadIO m, MonadLogger m, MonadMask m) => String -> Path Abs File -> m Signature #

Sign a haskell package with the given url of the signature service and a path to a tarball.

signPackage :: (MonadIO m, MonadLogger m, MonadThrow m) => String -> PackageIdentifier -> Path Abs File -> m Signature #

Sign a haskell package given the url to the signature service, a `PackageIdentifier` and a file path to the package on disk.

signTarBytes :: (MonadIO m, MonadLogger m, MonadMask m) => String -> Path Rel File -> ByteString -> m Signature #

Sign a haskell package with the given url to the signature service, a package tarball path (package tarball name) and a lazy bytestring of bytes that represent the tarball bytestream. The function will write the bytes to the path in a temp dir and sign the tarball with GPG.