aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Company.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Company.hs')
-rw-r--r--src/Model/Company.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Model/Company.hs b/src/Model/Company.hs
new file mode 100644
index 0000000..3069488
--- /dev/null
+++ b/src/Model/Company.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE DeriveGeneric #-}
+
+module Model.Company where
+
+import GHC.Generics
+import Data.Yaml
+
+data Company = Company
+ { name :: String
+ , location :: String
+ } deriving (Show, Read, Eq, Generic)
+
+instance FromJSON Company