| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stack.Upload
Contents
Description
Provide ability to upload tarballs to Hackage.
Synopsis
- upload :: String -> HackageCreds -> FilePath -> IO ()
- uploadBytes :: String -> HackageCreds -> String -> ByteString -> IO ()
- uploadRevision :: String -> HackageCreds -> PackageIdentifier -> ByteString -> IO ()
- data HackageCreds
- loadCreds :: Config -> IO HackageCreds
- writeFilePrivate :: MonadIO m => FilePath -> Builder -> m ()
Upload
Arguments
| :: String | Hackage base URL |
| -> HackageCreds | |
| -> FilePath | |
| -> IO () |
Upload a single tarball with the given Uploader.
Since 0.1.0.0
Arguments
| :: String | Hackage base URL |
| -> HackageCreds | |
| -> String | tar file name |
| -> ByteString | tar file contents |
| -> IO () |
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
Arguments
| :: String | Hackage base URL |
| -> HackageCreds | |
| -> PackageIdentifier | |
| -> ByteString | |
| -> IO () |
Credentials
data HackageCreds Source #
Username and password to log into Hackage.
Since 0.1.0.0
Instances
| Show HackageCreds Source # | |
Defined in Stack.Upload Methods showsPrec :: Int -> HackageCreds -> ShowS # show :: HackageCreds -> String # showList :: [HackageCreds] -> ShowS # | |
| ToJSON HackageCreds Source # | |
Defined in Stack.Upload Methods toJSON :: HackageCreds -> Value # toEncoding :: HackageCreds -> Encoding # toJSONList :: [HackageCreds] -> Value # toEncodingList :: [HackageCreds] -> Encoding # | |
| FromJSON (FilePath -> HackageCreds) Source # | |
Defined in Stack.Upload Methods parseJSON :: Value -> Parser (FilePath -> HackageCreds) # parseJSONList :: Value -> Parser [FilePath -> HackageCreds] # | |
loadCreds :: Config -> IO HackageCreds Source #
Load Hackage credentials, either from a save file or the command line.
Since 0.1.0.0