diff options
Diffstat (limited to 'lib/SlackBuilder/Package.hs')
| -rw-r--r-- | lib/SlackBuilder/Package.hs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/SlackBuilder/Package.hs b/lib/SlackBuilder/Package.hs index 7d73976..1fdb29e 100644 --- a/lib/SlackBuilder/Package.hs +++ b/lib/SlackBuilder/Package.hs @@ -6,7 +6,8 @@ module SlackBuilder.Package ( DownloadPlaceholder(..) , Download(..) , DownloadTemplate(..) - , Package(..) + , PackageDescription(..) + , PackageUpdateData(..) , Maintainer(..) , Updater(..) , renderDownloadWithVersion @@ -23,13 +24,18 @@ import Control.Monad.Catch (MonadThrow) import Data.Map (Map) -- | Contains information how a package can be updated. -data Package = Package +data PackageDescription = PackageDescription { latest :: Updater , downloaders :: Map Text Updater - , category :: Text , name :: Text } +data PackageUpdateData = PackageUpdateData + { description :: PackageDescription + , category :: Text + , version :: Text + } + -- | Download URI with the MD5 checksum of the target. data Download = Download { download :: URI |
