| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Types.DownloadInfo
Synopsis
- data DownloadInfo = DownloadInfo {
- url :: Text
- contentLength :: Maybe Int
- sha1 :: Maybe ByteString
- sha256 :: Maybe ByteString
- parseDownloadInfoFromObject :: Object -> WarningParser DownloadInfo
Documentation
data DownloadInfo Source #
Information for a file to download.
Constructors
| DownloadInfo | |
Fields
| |
Instances
| Show DownloadInfo Source # | |
Defined in Stack.Types.DownloadInfo Methods showsPrec :: Int -> DownloadInfo -> ShowS # show :: DownloadInfo -> String # showList :: [DownloadInfo] -> ShowS # | |
| FromJSON (WithJSONWarnings DownloadInfo) Source # | |
Defined in Stack.Types.DownloadInfo Methods parseJSON :: Value -> Parser (WithJSONWarnings DownloadInfo) # parseJSONList :: Value -> Parser [WithJSONWarnings DownloadInfo] # | |
parseDownloadInfoFromObject :: Object -> WarningParser DownloadInfo Source #
Parse JSON in existing object for DownloadInfo