Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- unitAliasTable :: Map (CI Text) Unit
- quantityAliasTable :: Map (CI Text) Quantity
- scrubIngredientName :: ParsedIngredientName -> IngredientName
- scrubUnit :: ParsedUnit -> Unit
- scrubQuantity :: ParsedQuantity -> Quantity
- scrubIngredient :: ParsedIngredient -> Ingredient
- quantityP :: Parser ParsedQuantity
- spaced :: Parser a -> Parser a
- unitP :: Parser ParsedUnit
- nameP :: Parser ParsedIngredientName
- ingredientP :: Parser ParsedIngredient
- sanitize :: Text -> Text
- runParser :: Parser a -> Text -> Either String a
- requireNonEmpty :: Text -> [a] -> Either Text [a]
- parseScrapedIngredients :: [ScrapedIngredient] -> Either Text [Ingredient]
- parseRawIngredients :: Text -> Either Text [Ingredient]
- mkIngredients :: Text -> [Ingredient]
- parseScrapedSteps :: [ScrapedStep] -> Either Text [Step]
Documentation
scrubUnit :: ParsedUnit -> Unit Source #
unitP :: Parser ParsedUnit Source #
parseScrapedIngredients :: [ScrapedIngredient] -> Either Text [Ingredient] Source #
Parse scraped ingredients.
parseRawIngredients :: Text -> Either Text [Ingredient] Source #
Parse raw ingredients, i.e. ones we know should be separated by newlines.
mkIngredients :: Text -> [Ingredient] Source #
Passive ingredient parser which separates on newlines.
parseScrapedSteps :: [ScrapedStep] -> Either Text [Step] Source #
Parse scraped steps.