make thumb optional
This commit is contained in:
parent
cf999d19b6
commit
d342fc6971
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ data Info =
|
|||
nsfwTags :: ![Text],
|
||||
description :: !(Maybe Text),
|
||||
images :: ![Image],
|
||||
thumb :: !Text,
|
||||
thumb :: !(Maybe Text),
|
||||
links :: ![Link]
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
@ -71,7 +71,7 @@ instance FromYAML Info where
|
|||
<*> m .:? "nsfw-tags" .!= []
|
||||
<*> m .:? "description"
|
||||
<*> m .: "images"
|
||||
<*> m .: "thumb"
|
||||
<*> m .:? "thumb"
|
||||
<*> m .:? "links" .!= []
|
||||
|
||||
instance FromYAML Artist where
|
||||
|
|
Loading…
Reference in a new issue