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