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/SkillType.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Model/SkillType.hs (limited to 'src/Model/SkillType.hs') diff --git a/src/Model/SkillType.hs b/src/Model/SkillType.hs new file mode 100644 index 0000000..3e533b8 --- /dev/null +++ b/src/Model/SkillType.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE DeriveGeneric #-} + +module Model.SkillType where + +import GHC.Generics +import Data.Yaml + +import Model.Translated + +data SkillType = SkillType + { name :: Translated + , skills :: [Translated] + } deriving (Show, Read, Eq, Generic) + +instance FromJSON SkillType -- cgit v1.2.3