From 340b95cf799d5f51bbcb7d489ac77deb12cbd2ae Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Tue, 19 May 2026 22:52:12 -0400 Subject: [PATCH] chore: format with fourmolu and add SchemaOrg to cabal --- roux-server.cabal | 2 ++ src/Roux/RecipeIndex.hs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roux-server.cabal b/roux-server.cabal index c7869ea..0d5a06f 100644 --- a/roux-server.cabal +++ b/roux-server.cabal @@ -22,6 +22,7 @@ library Roux.NYTimes Roux.Parser Roux.RecipeIndex + Roux.SchemaOrg Roux.Server Roux.Types other-modules: @@ -127,6 +128,7 @@ test-suite roux-server-test other-modules: Roux.NYTimesSpec Roux.ParserSpec + Roux.SchemaOrgSpec Paths_roux_server autogen-modules: Paths_roux_server diff --git a/src/Roux/RecipeIndex.hs b/src/Roux/RecipeIndex.hs index c295625..89cb8c1 100644 --- a/src/Roux/RecipeIndex.hs +++ b/src/Roux/RecipeIndex.hs @@ -81,8 +81,9 @@ toSearchEntry info = , rseTags = tags } --- | Extract a display title from the recipe's metadata or fall back to the --- filename. +{- | Extract a display title from the recipe's metadata or fall back to the +filename. +-} extractTitle :: Recipe -> FilePath -> Text extractTitle recipe filename = case metaTitle (recipeMetadata recipe) of