File: parallel-comprehensions-complex-out.hs

package info (click to toggle)
haskell-ormolu 0.1.2.0-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 3,392 kB
  • sloc: haskell: 11,134; makefile: 7
file content (35 lines) | stat: -rw-r--r-- 584 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
23
24
25
26
27
28
29
30
31
32
33
34
35
baz x y z w =
  [ ( a,
      b,
      c,
      d,
      e,
      f,
      g,
      h,
      i,
      j
    )
    | a <- -- Foo 1
        x, -- Foo 2
      b <- -- Bar 1
        y, -- Bar 2
      a
        `mod` b -- Value
        == 0
    | c <- -- Baz 1
        z
          * z -- Baz 2
          -- Baz 3
    | d <- w -- Other
    | e <- x * x -- Foo bar
    | f <- -- Foo baz 1
        y + y -- Foo baz 2
    | h <- z + z * w ^ 2 -- Bar foo
    | i <- -- Bar bar 1
        a
          + b, -- Bar bar 2
          -- Bar bar 3
      j <- -- Bar baz 1
        a + b -- Bar baz 2
  ]