use duplicate fields
This commit is contained in:
parent
c80555b72c
commit
c1d14c539f
2 changed files with 13 additions and 12 deletions
|
@ -20,28 +20,28 @@ import Text.Read (readMaybe)
|
|||
|
||||
data Info =
|
||||
Info {
|
||||
infoDate :: !Day,
|
||||
infoTitle :: !Text,
|
||||
infoTags :: !(Vector Text),
|
||||
infoDesc :: !Text,
|
||||
infoImages :: !(Vector Image),
|
||||
infoThumb :: !Text,
|
||||
infoLinks :: !(Vector Link)
|
||||
date :: !Day,
|
||||
title :: !Text,
|
||||
tags :: !(Vector Text),
|
||||
description :: !Text,
|
||||
images :: !(Vector Image),
|
||||
thumb :: !Text,
|
||||
links :: !(Vector Link)
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
data Image =
|
||||
Image {
|
||||
imageLabel :: !Text,
|
||||
imagePath :: !Text,
|
||||
imageNsfw :: !Bool
|
||||
label :: !Text,
|
||||
path :: !Text,
|
||||
nsfw :: !Bool
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
data Link =
|
||||
Link {
|
||||
linkTitle :: !Text,
|
||||
linkUrl :: !Text
|
||||
title :: !Text,
|
||||
url :: !Text
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue