Make is64 property part of the updater
All checks were successful
Build / audit (push) Successful in 14m26s
Build / test (push) Successful in 14m35s

This commit is contained in:
2024-01-19 09:57:58 +01:00
parent 7edb811dc2
commit 2802194063
2 changed files with 102 additions and 55 deletions

View File

@ -34,7 +34,6 @@ data Package = Package
data Download = Download
{ download :: URI
, md5sum :: Digest MD5
, is64 :: Bool
} deriving (Eq, Show)
-- | Package maintainer information.
@ -74,5 +73,6 @@ renderDownloadWithVersion (DownloadTemplate components) version =
-- | Function used to get the latest version of a source.
data Updater = Updater
{ detectLatest :: SlackBuilderT (Maybe Text)
, is64 :: Bool
, getVersion :: Text -> Text -> SlackBuilderT Download
}