From 0fe906ae7453aa684e998bbcc7a78b62d84f0206 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sun, 6 Apr 2014 22:55:16 +0200 Subject: Show resume and projects from a configuration file --- src/Model/School.hs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Model/School.hs (limited to 'src/Model/School.hs') 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 -- cgit v1.2.3