aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-04-18 21:59:22 +0200
committerJoris Guyonvarch2015-04-18 21:59:22 +0200
commit389d979eb3eaa18beb8a6da9f4a03bdb6acc1722 (patch)
tree9d475b868ad13162c0ecba42b2138058c2e2e68b /src/Model
parent86f9991deeb44a6cc81044e61a9ad3ee001c5ced (diff)
Parsing utag_list from a detail page and showing the keys that are given in the configuration file
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Config.hs13
-rw-r--r--src/Model/Detail.hs2
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Model/Config.hs b/src/Model/Config.hs
new file mode 100644
index 0000000..42b390e
--- /dev/null
+++ b/src/Model/Config.hs
@@ -0,0 +1,13 @@
+module Model.Config
+ ( Config(..)
+ ) where
+
+import Data.Text
+
+import Model.URL
+
+data Config = Config
+ { url :: URL
+ , mailTo :: [Text]
+ , properties :: [Text]
+ } deriving (Eq, Read, Show)
diff --git a/src/Model/Detail.hs b/src/Model/Detail.hs
index a170ca6..c0e8d5f 100644
--- a/src/Model/Detail.hs
+++ b/src/Model/Detail.hs
@@ -3,10 +3,12 @@ module Model.Detail
) where
import Data.Text
+import Data.Map (Map)
import Model.URL
data Detail = Detail
{ description :: Maybe Text
, images :: [URL]
+ , properties :: Map Text Text
} deriving (Eq, Read, Show)