Skip to content

Reduce arity of foldlOf' and related functions #81

Reduce arity of foldlOf' and related functions

Reduce arity of foldlOf' and related functions #81

Re-run triggered January 20, 2025 18:47
Status Failure
Total duration 24s
Artifacts

hlint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 5 warnings
hlint
HLint failed with status: 1. Suggestion (4)
hlint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
hlint: src/Control/Lens/Fold.hs#L1758
Suggestion in foldr1Of in module Control.Lens.Fold: Avoid lambda ▫︎ Found: "\\ xs\n -> fromMaybe\n (error \"foldr1Of: empty structure\") (foldrOf l mf Nothing xs)" ▫︎ Perhaps: "fromMaybe (error \"foldr1Of: empty structure\")\n . foldrOf l mf Nothing"
hlint: src/Control/Lens/Fold.hs#L1785
Suggestion in foldl1Of in module Control.Lens.Fold: Avoid lambda ▫︎ Found: "\\ xs\n -> fromMaybe\n (error \"foldl1Of: empty structure\") (foldlOf l mf Nothing xs)" ▫︎ Perhaps: "fromMaybe (error \"foldl1Of: empty structure\")\n . foldlOf l mf Nothing"
hlint: src/Control/Lens/Fold.hs#L1846
Suggestion in foldr1Of' in module Control.Lens.Fold: Avoid lambda ▫︎ Found: "\\ xs\n -> fromMaybe\n (error \"foldr1Of': empty structure\") (foldrOf' l mf Nothing xs)" ▫︎ Perhaps: "fromMaybe (error \"foldr1Of': empty structure\")\n . foldrOf' l mf Nothing"
hlint: src/Control/Lens/Fold.hs#L1868
Suggestion in foldl1Of' in module Control.Lens.Fold: Avoid lambda ▫︎ Found: "\\ xs\n -> fromMaybe\n (error \"foldl1Of': empty structure\") (foldlOf' l mf Nothing xs)" ▫︎ Perhaps: "fromMaybe (error \"foldl1Of': empty structure\")\n . foldlOf' l mf Nothing"