summaryrefslogtreecommitdiff
path: root/lib/SlackBuilder/Package.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SlackBuilder/Package.hs')
-rw-r--r--lib/SlackBuilder/Package.hs15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/SlackBuilder/Package.hs b/lib/SlackBuilder/Package.hs
index 5179c4c..c87bf4b 100644
--- a/lib/SlackBuilder/Package.hs
+++ b/lib/SlackBuilder/Package.hs
@@ -5,7 +5,8 @@
-- | Contains data describing packages, methods to update them and to request
-- information about them.
module SlackBuilder.Package
- ( Download(..)
+ ( DataBaseEntry(..)
+ , Download(..)
, DownloadTemplate(..)
, PackageDescription(..)
, PackageUpdateData(..)
@@ -66,3 +67,15 @@ data Updater = Updater
, is64 :: Bool
, getVersion :: Text -> Text -> SlackBuilderT Download
}
+
+data DataBaseEntry = DataBaseEntry
+ { name :: Text
+ , version :: Text
+ , arch :: Text
+ , build :: Text
+ } deriving Eq
+
+instance Show DataBaseEntry
+ where
+ show DataBaseEntry{..} = Text.unpack
+ $ Text.intercalate "-" [name, version, arch, build]