File: flag-with-group.test

package info (click to toggle)
hlint 3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 988 kB
  • sloc: haskell: 7,098; lisp: 86; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (3)
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