stack-2.11.1: 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.

Constructors

UploadOpts 

Fields

data UploadVariant Source #

Constructors

Publishing

Publish the package

Candidate

Create 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 
-> FilePath 
-> 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 
-> 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