chore: format with fourmolu and add SchemaOrg to cabal
This commit is contained in:
@@ -22,6 +22,7 @@ library
|
|||||||
Roux.NYTimes
|
Roux.NYTimes
|
||||||
Roux.Parser
|
Roux.Parser
|
||||||
Roux.RecipeIndex
|
Roux.RecipeIndex
|
||||||
|
Roux.SchemaOrg
|
||||||
Roux.Server
|
Roux.Server
|
||||||
Roux.Types
|
Roux.Types
|
||||||
other-modules:
|
other-modules:
|
||||||
@@ -127,6 +128,7 @@ test-suite roux-server-test
|
|||||||
other-modules:
|
other-modules:
|
||||||
Roux.NYTimesSpec
|
Roux.NYTimesSpec
|
||||||
Roux.ParserSpec
|
Roux.ParserSpec
|
||||||
|
Roux.SchemaOrgSpec
|
||||||
Paths_roux_server
|
Paths_roux_server
|
||||||
autogen-modules:
|
autogen-modules:
|
||||||
Paths_roux_server
|
Paths_roux_server
|
||||||
|
|||||||
@@ -81,8 +81,9 @@ toSearchEntry info =
|
|||||||
, rseTags = tags
|
, rseTags = tags
|
||||||
}
|
}
|
||||||
|
|
||||||
-- | Extract a display title from the recipe's metadata or fall back to the
|
{- | Extract a display title from the recipe's metadata or fall back to the
|
||||||
-- filename.
|
filename.
|
||||||
|
-}
|
||||||
extractTitle :: Recipe -> FilePath -> Text
|
extractTitle :: Recipe -> FilePath -> Text
|
||||||
extractTitle recipe filename =
|
extractTitle recipe filename =
|
||||||
case metaTitle (recipeMetadata recipe) of
|
case metaTitle (recipeMetadata recipe) of
|
||||||
|
|||||||
Reference in New Issue
Block a user