aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Project.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Project.hs')
-rw-r--r--src/Model/Project.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Model/Project.hs b/src/Model/Project.hs
new file mode 100644
index 0000000..7825e60
--- /dev/null
+++ b/src/Model/Project.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE DeriveGeneric #-}
+
+module Model.Project where
+
+import GHC.Generics
+import Data.Yaml
+
+import Model.Translated
+
+data Project = Project
+ { name :: String
+ , technologies :: [String]
+ , description :: Maybe Translated
+ , git :: String
+ , pageLink :: Maybe String
+ } deriving (Show, Read, Eq, Generic)
+
+instance FromJSON Project