1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
---------------------------------------------------------------------
FILE tests/flag-with-group.hs
foo = map (+1) . maybe mempty reverse
RUN "--with-group=generalise" tests/flag-with-group.hs
OUTPUT
tests/flag-with-group.hs:1:7-9: Warning: Use fmap
Found:
map
Perhaps:
fmap
1 hint
---------------------------------------------------------------------
RUN "--with-group=generalise-for-conciseness" tests/flag-with-group.hs
OUTPUT
tests/flag-with-group.hs:1:18-29: Warning: Use foldMap
Found:
maybe mempty
Perhaps:
foldMap
1 hint
|