diff options
Diffstat (limited to 'src/Model')
-rw-r--r-- | src/Model/Ad.hs | 11 | ||||
-rw-r--r-- | src/Model/Detail.hs | 7 | ||||
-rw-r--r-- | src/Model/Resume.hs | 9 |
3 files changed, 27 insertions, 0 deletions
diff --git a/src/Model/Ad.hs b/src/Model/Ad.hs new file mode 100644 index 0000000..fe650a6 --- /dev/null +++ b/src/Model/Ad.hs @@ -0,0 +1,11 @@ +module Model.Ad + ( Ad(..) + ) where + +import Model.Resume +import Model.Detail + +data Ad = Ad + { resume :: Resume + , detail :: Detail + } deriving (Eq, Read, Show) diff --git a/src/Model/Detail.hs b/src/Model/Detail.hs new file mode 100644 index 0000000..f00a7eb --- /dev/null +++ b/src/Model/Detail.hs @@ -0,0 +1,7 @@ +module Model.Detail + ( Detail(..) + ) where + +data Detail = Detail + { description :: Maybe String + } deriving (Eq, Read, Show) diff --git a/src/Model/Resume.hs b/src/Model/Resume.hs new file mode 100644 index 0000000..1b73baf --- /dev/null +++ b/src/Model/Resume.hs @@ -0,0 +1,9 @@ +module Model.Resume + ( Resume(..) + ) where + +data Resume = Resume + { name :: String + , price :: Maybe String + , url :: String + } deriving (Eq, Read, Show) |