1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
---------------------------------------------------------------------
RUN lint tests/cmdline-lint.hs
FILE tests/cmdline-lint.hs
foo = map f (map g xs)
OUTPUT
tests/cmdline-lint.hs:2:7-22: Suggestion: Use map once
Found:
map f (map g xs)
Perhaps:
map (f . g) xs
1 hint
---------------------------------------------------------------------
RUN tests/cmdline-bare.hs
FILE tests/cmdline-bare.hs
foo = map f (map g xs)
OUTPUT
tests/cmdline-bare.hs:2:7-22: Suggestion: Use map once
Found:
map f (map g xs)
Perhaps:
map (f . g) xs
1 hint
|