Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains FromJSON
instances in order to be
able to parse Follow types up to a Recipe
from a yaml or json text.
You can use decode functions in Data.Yaml in order to do the parsing.
For time fields, any format accepted by
parseTimeGuess
is accepted.
Orphan instances
FromJSON Middleware Source # | type: decode
options:
encoding: # See or type: sort
options:
function: # See or type: filter
options:
operation: # See |
parseJSON :: Value -> Parser Middleware # parseJSONList :: Value -> Parser [Middleware] # | |
FromJSON Subject Source # | title: Title description: Description tags: [tag_1, tag_2] |
FromJSON ComparisonFunction Source # | type: by_field options: field: title |
parseJSON :: Value -> Parser ComparisonFunction # parseJSONList :: Value -> Parser [ComparisonFunction] # | |
FromJSON Predicate Source # | type: equal options: field: title value: Title or type: less options: field: publish_date value: 2018-08-08 00:00:00 or type: greater options: field: publish_date value: 2018-08-08 00:00:00 or type: infix options: field: title value: something or type: prefix options: field: title value: The or type: suffix options: field: title value: end or type: not
options:
operator: # See or type: and options: operator1: # See or type: or options: operator1: # See |
FromJSON Encoding Source # |
|
FromJSON SelectorItem Source # | type: text options: css: .selector or type: attr options: css: .link name: href |
parseJSON :: Value -> Parser SelectorItem # parseJSONList :: Value -> Parser [SelectorItem] # | |
FromJSON Selector Source # | uri: # See |
(MonadThrow m, MonadHttp m) => FromJSON (Recipe m) Source # | subject: # See |
(MonadThrow m, MonadHttp m) => FromJSON (Fetched m) Source # | type: feed options: url: http://someurl.com or type: webscraping
options:
url: http://someurl.com
selector: # See |