add field for cw but not using it yet
This commit is contained in:
parent
94bd16504c
commit
5a5127a78c
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ data Info =
|
||||||
date :: !Day,
|
date :: !Day,
|
||||||
title :: !(Maybe Text),
|
title :: !(Maybe Text),
|
||||||
artist :: !(Maybe Artist), -- nothing = me, obv
|
artist :: !(Maybe Artist), -- nothing = me, obv
|
||||||
|
warning :: !(Maybe Text),
|
||||||
tags :: ![Text],
|
tags :: ![Text],
|
||||||
nsfwTags :: ![Text],
|
nsfwTags :: ![Text],
|
||||||
description :: !(Maybe Text),
|
description :: !(Maybe Text),
|
||||||
|
@ -65,6 +66,7 @@ instance FromYAML Info where
|
||||||
Info <$> m .: "date"
|
Info <$> m .: "date"
|
||||||
<*> m .:? "title"
|
<*> m .:? "title"
|
||||||
<*> m .:? "artist"
|
<*> m .:? "artist"
|
||||||
|
<*> m .:? "warning"
|
||||||
<*> m .:? "tags" .!= []
|
<*> m .:? "tags" .!= []
|
||||||
<*> m .:? "nsfwTags" .!= []
|
<*> m .:? "nsfwTags" .!= []
|
||||||
<*> m .:? "description"
|
<*> m .:? "description"
|
||||||
|
|
Loading…
Reference in a new issue