aboutsummaryrefslogtreecommitdiff
path: root/src/Model/School.hs
blob: cb10ed9348dc2e052cc7ae6ab32b4f2467a24bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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