stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Upload

Description

Types and functions related to Stack's upload command.

Synopsis

Upload

data UploadOpts Source #

Type representing command line options for the stack upload command.

data SDistOpts Source #

Type representing command line options for stack sdist command.

Constructors

SDistOpts 

Fields

data UploadContent Source #

Type representing forms of content for upload to Hackage.

Constructors

SDist 
DocArchive 

data UploadVariant Source #

Type representing variants for uploading to Hackage.

Constructors

Publishing

Publish the package/a published package.

Candidate

Create a package candidate/a package candidate.

uploadCmd :: UploadOpts -> RIO Runner () Source #

Function underlying the stack upload command. Upload to Hackage.

upload Source #

Arguments

:: (HasLogFunc m, HasTerm m) 
=> String

Hackage base URL

-> HackageAuth 
-> UploadContent 
-> Maybe String

Optional package identifier name, applies only to the upload of documentation.

-> FilePath

Path to archive file.

-> UploadVariant 
-> RIO m () 

Upload a single tarball with the given Uploader.

Since 0.1.0.0

uploadBytes Source #

Arguments

:: HasTerm m 
=> String

Hackage base URL

-> HackageAuth 
-> UploadContent

Form of the content to be uploaded.

-> Maybe String

Optional package identifier name, applies only to the upload of documentation.

-> String

tar file name

-> UploadVariant 
-> ByteString

tar file contents

-> RIO m () 

Upload a single tarball with the given Uploader. Instead of sending a file like upload, this sends a lazy bytestring.

Since 0.1.2.1

uploadRevision Source #

Arguments

:: (HasLogFunc m, HasTerm m) 
=> String

Hackage base URL

-> HackageAuth 
-> PackageIdentifier 
-> ByteString 
-> RIO m () 

Credentials

data HackageCreds Source #

Username and password to log into Hackage.

Since 0.1.0.0

data HackageAuth Source #

Instances

Instances details
Show HackageAuth Source # 
Instance details

Defined in Stack.Upload

Eq HackageAuth Source # 
Instance details

Defined in Stack.Upload

newtype HackageKey Source #

Constructors

HackageKey Text 

Instances

Instances details
Show HackageKey Source # 
Instance details

Defined in Stack.Upload

Eq HackageKey Source # 
Instance details

Defined in Stack.Upload

Internal