Fix all 20 hlint warnings across 5 source files
Build and Deploy / build-and-deploy (push) Successful in 12m38s

- Use newtype instead of data for single-field types (RouxConfig, ImportError)
- Replace maybe "" id with fromMaybe "" throughout
- Replace not (x `elem` ys) with x `notElem` ys
- Remove redundant brackets, redundant $, and eta-reduce lookupRecipe
- Use numeric underscore for 1_000_000
This commit is contained in:
2026-05-25 21:30:21 -04:00
parent 67c3b4df6c
commit ed015d3799
5 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ data SortMode
deriving stock (Eq, Show)
-- | Error type for the import pipeline.
data ImportError = ImportError Text
newtype ImportError = ImportError Text
deriving stock (Eq, Show)
-- ---------------------------------------------------------------------------
@@ -982,7 +982,7 @@ renderMethodSections sections = do
isMethodSection :: Section -> Bool
isMethodSection section =
case sectionName section of
Just n -> not (T.toLower n `elem` ["ingredients", "ingredient"])
Just n -> T.toLower n `notElem` ["ingredients", "ingredient"]
Nothing -> True
-- | Extract (section name, body items) from a section for the method column.