File: flag-no-summary.test

package info (click to toggle)
hlint 3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 988 kB
  • sloc: haskell: 7,098; lisp: 86; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---------------------------------------------------------------------
RUN tests/flag-no-summary1.hs --no-summary
FILE tests/flag-no-summary1.hs
main = map f $ map g xs
OUTPUT
tests/flag-no-summary1.hs:1:8-23: Suggestion: Use map once
Found:
  map f $ map g xs
Perhaps:
  map (f . g) xs

EXIT 1
---------------------------------------------------------------------
RUN tests/flag-no-summary2.hs --no-summary
FILE tests/flag-no-summary2.hs
main = pure ()
OUTPUT
EXIT 0