]> Git — Sourcephile - tmp/julm/symantic.git/blob - symantic.cabal
init
[tmp/julm/symantic.git] / symantic.cabal
1 cabal-version: 3.0
2 name: literate-web
3 maintainer: mailto:literate-web@sourcephile.fr
4 bug-reports: https://mails.sourcephile.fr/inbox/literate-web
5 homepage: https://git.sourcephile.fr/literate-web.git
6 author: Julien Moutinho <julm+literate-web@sourcephile.fr>
7 copyright: Julien Moutinho <julm+literate-web@sourcephile.fr>
8 license: AGPL-3.0-or-later
9 license-file: LICENSES/AGPL-3.0-or-later.txt
10
11 -- PVP: +-+------- breaking API changes
12 -- | | +----- non-breaking API additions
13 -- | | | +--- code changes with no API change
14 version: 0.0.0.20221117
15 stability: experimental
16 category: Web
17 synopsis: Haskell-website compiler
18 description:
19 Exploring the design space of compile-time website generator
20 by using a domain-specific language (DSL)
21 embedded into the Haskell language.
22 .
23 Alternatives:
24 .
25 * <https://hackage.haskell.org/package/ema ema>
26
27 build-type: Simple
28 tested-with: GHC ==9.2.4
29 extra-doc-files: ChangeLog.md
30 extra-source-files:
31 .envrc
32 cabal.project
33 flake.lock
34 flake.nix
35
36 extra-tmp-files:
37
38 source-repository head
39 type: git
40 location: git://git.sourcephile.fr/haskell/literate-web.git
41
42 common boilerplate
43 default-language: Haskell2010
44 default-extensions:
45 NoImplicitPrelude
46 BlockArguments
47 DataKinds
48 DefaultSignatures
49 DeriveDataTypeable
50 DeriveGeneric
51 DerivingVia
52 FlexibleContexts
53 FlexibleInstances
54 GADTs
55 ImportQualifiedPost
56 LambdaCase
57 MultiParamTypeClasses
58 NamedFieldPuns
59 NumericUnderscores
60 OverloadedStrings
61 RecordWildCards
62 ScopedTypeVariables
63 TupleSections
64 TypeApplications
65 TypeFamilies
66 TypeOperators
67
68 ghc-options:
69 -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
70 -Wmonomorphism-restriction -Wpartial-fields
71 -fprint-potential-instances
72
73 -- -dshow-passes
74 -- -ddump-to-file
75 -- -ddump-simpl
76 -- -dsuppress-coercions
77 -- -dsuppress-module-prefixes
78 -- -dsuppress-type-applications
79 -- -O0
80 -- -fmax-simplifier-iterations=0
81
82 common library-deps
83 build-depends:
84 , async >=2.2
85 , base >=4.6 && <5
86 , bytestring >=0.10
87 , containers >=0.5
88 , directory >=1.3
89 , filepath >=1.4
90 , filepattern >=0.1
91 , hashable
92 , http-client >=0.6
93 , http-media >=0.7
94 , monad-classes
95 , peano
96 , reflection
97 , symantic-base >=0.5
98 , template-haskell
99 , text
100 , transformers >=0.5
101 , unicode-transforms >=0.2
102 , unordered-containers
103 , uri-encode >=1.5
104 , wai
105 , wai-middleware-static
106 , wai-websockets
107 , warp
108 , websockets >=0.12
109 , pipes
110 , pipes-safe
111 , pipes-concurrency
112 , pipes-parse
113 , pipes-group
114 , mvc
115 , mvc-updates
116 , ghc-prim
117
118 library
119 import: boilerplate, library-deps
120 hs-source-dirs: src
121 exposed-modules:
122 ForallSem
123 Literate.Web
124 Literate.Web.Semantics.Compiler
125 Literate.Web.Semantics.Addresser
126 Literate.Web.Syntaxes
127 Literate.Web.Types.MIME
128 Literate.Web.Types.URL
129
130 library relactive
131 import: boilerplate, library-deps
132 hs-source-dirs: src
133 build-depends:
134 , async
135 , contravariant >=1.5
136 , stm
137 , monad-classes
138
139 exposed-modules:
140 Control.Reactive
141 Control.Reactive.IORef
142 Control.Reactive.MVar
143 Control.Reactive.Relation
144 Control.Reactive.STRef
145 Control.Reactive.TVar
146 Control.Reactive.Value
147
148 -- Literate.Web.Semantics.Server
149 -- Literate.Web.Semantics.Client
150 --Literate.Web.Decoder
151 --Literate.Web.Encoder
152 --Literate.Web.Generator
153 --Literate.Web.MIME
154
155 --Literate.Web.Decoder
156 test-suite literate-web-tests
157 -- library-deps is only to have ghcid reloaded on changes in src
158 import: boilerplate, library-deps
159 type: exitcode-stdio-1.0
160 hs-source-dirs: tests
161 main-is: Main.hs
162 other-modules:
163 Examples.Ex01
164 Examples.Ex02
165 Examples.Ex03
166 Examples.Ex04
167 Examples.Ex05
168 Goldens
169 Paths_literate_web
170 Utils
171 autogen-modules: Paths_literate_web
172 build-depends:
173 , base >=4.6 && <5
174 , containers >=0.5
175 , literate-web
176 , monad-classes
177 , relude
178 , symantic-base >=0.5
179 , tasty >=0.11
180 , tasty-golden >=2.3
181 , tasty-hunit >=0.9
182 , text >=1.2
183 , transformers >=0.5
184 , relactive
185
186 -- , relude >=1 && <2
187 benchmark time
188 import: boilerplate, library-deps
189 type: exitcode-stdio-1.0
190 hs-source-dirs: benchmarks/time
191 main-is: Main.hs
192 build-depends:
193 , base >=4.6 && <5
194 , relactive
195 , tasty
196 , tasty-bench
197
198 -- , relude >= 1
199 -- Set a larger allocation area (nursery)
200 -- to remove some noisiness of the garbage collection.
201 ghc-options: -with-rtsopts=-A32m
202
203 benchmark weigh
204 import: boilerplate, library-deps
205 type: exitcode-stdio-1.0
206 hs-source-dirs: benchmarks/weigh src
207 build-depends:
208 , async
209 , contravariant >=1.5
210 , stm
211
212 main-is: Main.hs
213 build-depends:
214 , base >=4.6 && <5
215 , relude >=1
216 , weigh
217
218 --, relactive
219 executable async
220 import: boilerplate, library-deps
221 hs-source-dirs: executables/async
222 main-is: Main.hs
223 build-depends:
224 , async
225 , base >=4.6 && <5
226 , relactive
227 , relude
228 , symantic-base
229 , tasty
230 , tasty-bench
231
232 -- , relude >= 1
233
234 executable fsnotify
235 import: boilerplate, library-deps
236 hs-source-dirs: executables/fsnotify
237 main-is: Main.hs
238 build-depends:
239 , async
240 , base >=4.6 && <5
241 , directory
242 , filepath
243 , fsnotify
244 , relactive
245 , relude >=1
246 , symantic-base
247 , tasty
248 , tasty-bench
249 , time