File: pipes.test

package info (click to toggle)
haskell-doctemplates 0.11.0.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: haskell: 1,223; makefile: 7
file content (109 lines) | stat: -rw-r--r-- 1,171 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{ "foo": 1,
  "bar": null,
  "baz": ["a", "b"],
  "bim": { "Zub": "Sim" },
  "sup": [ { "biz": "qux" },
           { "sax": 2 } ],
  "items": [ "one with\na line break",
            "two",
            "three with\na line break" ],
  "hasblanks": "hello\n\n",
  "hasblanksmap": { "a": "hello\n\n",
                    "b": "there\n\n" },
  "digits": [1, 5, 20]
}
.
$bar/length$
$baz/length$
$bim.Zub/length$
$bim/length$
$sup/length$

$baz/uppercase[, ]$

$for(baz)$
$it$
$it/uppercase$
$baz$
$baz/uppercase$
$endfor$

$for(bim/pairs)$
$it.key$: $it.value$
$bim.key$: $bim.value/lowercase$
$endfor$

$for(baz/pairs)$
$it.key/roman/uppercase/right 4$. $it.value$
$endfor$

$items/pairs/reverse:enum()$

($hasblanks/chomp$)

$for(hasblanksmap/chomp/pairs/uppercase)$
$it.key$ ($it.value$)
$endfor$

$digits/roman[ ]$

$for(bim/uppercase)$
$it.Zub$
$endfor$

$digits/first$
$digits/last$
$for(digits/rest)$
$it$
$endfor$
$for(digits/allbutlast)$
$it$
$endfor$
$foo/first$
.
0
2
3
1
2

A, B

a
A
a
A
b
B
b
B

Zub: Sim
Zub: sim

   I. a
  II. b

C.  three with
    a line break
B.  two
A.  one with
    a line break


(hello)

A (HELLO)
B (THERE)

i v xx

SIM

1
20
5
20
1
5
1