File: cmdline.test

package info (click to toggle)
hlint 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: haskell: 7,035; lisp: 86; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (2)
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