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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
cabal-version: 3.0
name: tirclogv
version: 0.1.0.0
author: Tom Smeding
maintainer: Tom Smeding
license: AGPL-3.0-or-later
license-file: COPYING
build-type: Simple
extra-source-files:
pages/*.mustache pages/partials/*.mustache
common common
default-language: Haskell2010
default-extensions:
ImportQualifiedPost
LambdaCase
MultiWayIf
TypeApplications
TupleSections
ghc-options: -Wall
executable tirclogv
import: common
main-is: Main.hs
other-modules:
Cache
Calendar
Config
Debounce
ImmutGrowVector
Index
Mmap
Pages
Parallel
Spamcheck
Util
-- ZNC.Slow
ZNC.Parser
build-depends:
base >= 4.20,
escapexml,
mini-http-server,
mustache-th,
-- attoparsec,
base16-bytestring,
bytestring,
clock,
containers,
cryptohash-sha256,
directory,
filepath,
fsnotify,
text-builder-linear,
random,
template-haskell,
text >= 2.1.2,
transformers,
time,
unix,
vector
hs-source-dirs: src
c-sources:
cbits/znc.c
cbits/mmap.c
cc-options: -msse2 -Wall -Wextra
-- necessary so profiling works:
other-extensions:
TemplateHaskell
ghc-options: -threaded -rtsopts
library mustache-th
import: common
exposed-modules:
Mustache.TH
Mustache.TH.Parser
build-depends:
base,
escapexml,
bytestring, containers, template-haskell, text, text-builder-linear, transformers, vector
hs-source-dirs: mustache-th
executable test-mustache-th
import: common
main-is: Main.hs
other-modules:
RenderNonTH
build-depends:
base,
mustache-th, escapexml,
aeson, containers, directory, filepath, scientific, text, text-builder-linear, transformers, vector, yaml
hs-source-dirs: test/mustache-th
library escapexml
import: common
exposed-modules: EscapeXML
build-depends: base, text
hs-source-dirs: escapexml
c-sources: escapexml/escapexml.c
cc-options: -msse2 -Wall -Wextra
library mini-http-server
import: common
exposed-modules:
Network.HTTP.Server.Mini
Network.HTTP.Server.Mini.URI
Network.HTTP.Server.Mini.Types
Network.HTTP.Server.Mini.Internal.Instrument
Network.HTTP.Server.Mini.Internal.Parser
other-modules:
Network.HTTP.Server.Mini.Printer
Network.HTTP.Server.Mini.Util
build-depends:
base,
bytestring,
flatparse,
network,
text,
time,
transformers,
stm
hs-source-dirs: mini-http-server
test-suite server-test
import: common
type: exitcode-stdio-1.0
main-is: Main.hs
build-depends:
base,
mini-http-server,
bytestring,
hedgehog,
transformers
hs-source-dirs: test/server
executable echo-server
import: common
main-is: mini-http-server/Main.hs
build-depends:
base,
mini-http-server,
bytestring
ghc-options: -threaded
|