Reduce arity of foldlOf' and related functions #81
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"
|