-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
110 lines (96 loc) · 2.85 KB
/
package.yaml
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
110
---
name:
wai-middleware-clacks
version:
0.1.0.1
github:
prikhi/wai-middleware-clacks
homepage:
https://github.com/prikhi/wai-middleware-clacks#readme
license:
BSD3
license-file:
LICENSE
author:
Pavan Rikhi
maintainer:
pavan.rikhi@gmail.com
copyright:
2020 Pavan Rikhi
category:
Web, Wai
extra-source-files:
- README.md
- CHANGELOG.md
synopsis:
GNU Terry Pratchett - Add the X-Clacks-Overhead Header to Wai Responses.
description: |
/"You know they'll never really die while the Trunk is alive."/
@wai-middleware-clacks@ is a middleware that inserts an arbitrary
@X-Clacks-Overhead@ header into every Wai response. From
<http://gnuterrypratchett.com GNU Terry Pratchett>:
> In Terry Pratchett's Discworld series, the clacks are a series of
> semaphore towers loosely based on the concept of the telegraph. Invented
> by an artificer named Robert Dearheart, the towers could send messages
> "at the speed of light" using standardized codes. Three of these codes
> are of particular import:
>
> G: send the message on
> N: do not log the message
> U: turn the message around at the end of the line and send it back again
>
> When Dearheart's son John died due to an accident while working on a
> clacks tower, Dearheart inserted John's name into the overhead of the
> clacks with a "GNU" in front of it as a way to memorialize his son forever
> (or for at least as long as the clacks are standing.)
>
>
> Keeping the legacy of Sir Terry Pratchett alive forever. For as long as
> his name is still passed along the Clacks, Death can't have him.
Please see the
<https://github.com/prikhi/wai-middleware-clacks/blob/master/README.md README>
or
<https://hackage.haskell.org/package/wai-middleware-clacks/docs/Network-Wai-Middleware-Clacks.html module documentation>
for usage instructions.
ghc-options:
- -Wall
when:
condition:
impl(ghc >= 8.0)
then:
ghc-options:
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
else:
ghc-options:
- -fwarn-incomplete-record-updates
- -fwarn-incomplete-uni-patterns
dependencies:
- base >= 4.3 && < 5
- base-compat-batteries
library:
source-dirs:
src
dependencies:
- bytestring < 1
- case-insensitive < 2
- http-types < 1
- text < 3
- wai < 4
tests:
wai-middleware-clacks-test:
main: Spec.hs
source-dirs:
tests
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts "-N -T"
dependencies:
- wai-middleware-clacks
- http-types
- tasty
- tasty-wai
- wai