Skip to content

Commit

Permalink
Add hlint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KubEF committed Mar 19, 2024
1 parent ce88bee commit 3da9263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ append xs ys = λ xs . λ ys . case xs of
Nil => ys
Cons x' xs' => Cons x' (append xs' ys)
-}
f x y = (x + y)
f = concat $ map (+ 1) [1, 2, 3]

Check warning on line 10 in lang/app/Main.hs

View workflow job for this annotation

GitHub Actions / hlint

Warning in f in module Main: Use concatMap ▫︎ Found: "concat $ map (+ 1) [1, 2, 3]" ▫︎ Perhaps: "concatMap (+ 1) [1, 2, 3]"

bodyOfAppend :: Expression
bodyOfAppend =
Expand Down

0 comments on commit 3da9263

Please sign in to comment.