Safe Haskell | None |
---|---|
Language | Haskell2010 |
Chez.Grater.Scraper.Types
Synopsis
- data ScrapeMetaWrapper
- newtype ScrapeName = ScrapeName {
- unScrapeName :: Text
- newtype ScrapeVersion = ScrapeVersion {}
- data ScrapeMeta a = ScrapeMeta {}
- newtype ScrapedRecipeName = ScrapedRecipeName {}
- data ScrapedIngredient = ScrapedIngredient Text
- data ScrapedStep = ScrapedStep Text
- data IngredientScraper = IngredientScraper {}
- data StepScraper = StepScraper {}
- newtype SiteName = SiteName {
- unSiteName :: Text
- data Scrapers = Scrapers {}
- data ScrapeError = ScrapeError Text
- title :: Scraper Text ScrapedRecipeName
- inception :: ScrapeVersion
Documentation
data ScrapeMetaWrapper Source #
Wrapper for scraper metadata.
Constructors
ScrapeMetaWrapperIngredient (ScrapeMeta ScrapedIngredient) | |
ScrapeMetaWrapperIngredientAndStep (ScrapeMeta ScrapedIngredient) (ScrapeMeta ScrapedStep) |
Instances
Eq ScrapeMetaWrapper Source # | |
Defined in Chez.Grater.Scraper.Types Methods (==) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # (/=) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # | |
Ord ScrapeMetaWrapper Source # | |
Defined in Chez.Grater.Scraper.Types Methods compare :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Ordering # (<) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # (<=) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # (>) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # (>=) :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> Bool # max :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> ScrapeMetaWrapper # min :: ScrapeMetaWrapper -> ScrapeMetaWrapper -> ScrapeMetaWrapper # | |
Show ScrapeMetaWrapper Source # | |
Defined in Chez.Grater.Scraper.Types Methods showsPrec :: Int -> ScrapeMetaWrapper -> ShowS # show :: ScrapeMetaWrapper -> String # showList :: [ScrapeMetaWrapper] -> ShowS # |
newtype ScrapeName Source #
Name of a scraper.
Constructors
ScrapeName | |
Fields
|
Instances
newtype ScrapeVersion Source #
Version of a scraper.
Constructors
ScrapeVersion | |
Fields |
Instances
data ScrapeMeta a Source #
Metadata for a scraper.
Constructors
ScrapeMeta | |
Fields |
Instances
newtype ScrapedRecipeName Source #
The `title` element of the HTML.
Constructors
ScrapedRecipeName | |
Fields |
Instances
data ScrapedIngredient Source #
Unparsed ingredient.
Constructors
ScrapedIngredient Text |
Instances
Eq ScrapedIngredient Source # | |
Defined in Chez.Grater.Scraper.Types Methods (==) :: ScrapedIngredient -> ScrapedIngredient -> Bool # (/=) :: ScrapedIngredient -> ScrapedIngredient -> Bool # | |
Ord ScrapedIngredient Source # | |
Defined in Chez.Grater.Scraper.Types Methods compare :: ScrapedIngredient -> ScrapedIngredient -> Ordering # (<) :: ScrapedIngredient -> ScrapedIngredient -> Bool # (<=) :: ScrapedIngredient -> ScrapedIngredient -> Bool # (>) :: ScrapedIngredient -> ScrapedIngredient -> Bool # (>=) :: ScrapedIngredient -> ScrapedIngredient -> Bool # max :: ScrapedIngredient -> ScrapedIngredient -> ScrapedIngredient # min :: ScrapedIngredient -> ScrapedIngredient -> ScrapedIngredient # | |
Show ScrapedIngredient Source # | |
Defined in Chez.Grater.Scraper.Types Methods showsPrec :: Int -> ScrapedIngredient -> ShowS # show :: ScrapedIngredient -> String # showList :: [ScrapedIngredient] -> ShowS # |
data ScrapedStep Source #
Constructors
ScrapedStep Text |
Instances
Eq ScrapedStep Source # | |
Defined in Chez.Grater.Scraper.Types | |
Ord ScrapedStep Source # | |
Defined in Chez.Grater.Scraper.Types Methods compare :: ScrapedStep -> ScrapedStep -> Ordering # (<) :: ScrapedStep -> ScrapedStep -> Bool # (<=) :: ScrapedStep -> ScrapedStep -> Bool # (>) :: ScrapedStep -> ScrapedStep -> Bool # (>=) :: ScrapedStep -> ScrapedStep -> Bool # max :: ScrapedStep -> ScrapedStep -> ScrapedStep # min :: ScrapedStep -> ScrapedStep -> ScrapedStep # | |
Show ScrapedStep Source # | |
Defined in Chez.Grater.Scraper.Types Methods showsPrec :: Int -> ScrapedStep -> ShowS # show :: ScrapedStep -> String # showList :: [ScrapedStep] -> ShowS # |
data IngredientScraper Source #
Constructors
IngredientScraper | |
Fields
|
data StepScraper Source #
Constructors
StepScraper | |
Fields
|
Domain like `halfbakedharvest.com`.
Constructors
SiteName | |
Fields
|
Constructors
Scrapers | |
data ScrapeError Source #
Constructors
ScrapeError Text |
Instances
Eq ScrapeError Source # | |
Defined in Chez.Grater.Scraper.Types | |
Show ScrapeError Source # | |
Defined in Chez.Grater.Scraper.Types Methods showsPrec :: Int -> ScrapeError -> ShowS # show :: ScrapeError -> String # showList :: [ScrapeError] -> ShowS # | |
Exception ScrapeError Source # | |
Defined in Chez.Grater.Scraper.Types Methods toException :: ScrapeError -> SomeException # fromException :: SomeException -> Maybe ScrapeError # displayException :: ScrapeError -> String # |