File: parallel-comprehensions-complex.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 (24 lines) | stat: -rw-r--r-- 842 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
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 *                         -- Baz 2
    z|                          -- 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 +                       -- Bar bar 2
      b,                        -- Bar bar 3
    j <-                        -- Bar baz 1
      a + b                     -- Bar baz 2
  ]