]> Git — Sourcephile - webc.git/blob - webc.cabal
wip
[webc.git] / webc.cabal
1 cabal-version: 3.0
2 name: webc
3 maintainer: mailto:webc@sourcephile.fr
4 bug-reports: https://mails.sourcephile.fr/inbox/webc
5 homepage: https://git.sourcephile.fr/webc.git
6 author: Julien Moutinho <julm+webc@sourcephile.fr>
7 copyright: Julien Moutinho <julm+webc@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.2.20220216
15 stability: experimental
16 category: Web
17 synopsis: Haskell-website compiler
18 description:
19 An early draft for a static website generator
20 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 ==8.10.7
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/webc.git
41
42 common boilerplate
43 default-language: Haskell2010
44 default-extensions:
45 NoImplicitPrelude
46 BlockArguments
47 DataKinds
48 DefaultSignatures
49 DerivingVia
50 FlexibleContexts
51 FlexibleInstances
52 GADTs
53 ImportQualifiedPost
54 LambdaCase
55 MultiParamTypeClasses
56 NamedFieldPuns
57 OverloadedStrings
58 RecordWildCards
59 ScopedTypeVariables
60 TupleSections
61 TypeApplications
62 TypeFamilies
63 TypeOperators
64
65 ghc-options:
66 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
67 -fhide-source-paths -fprint-explicit-kinds
68
69 -- -O0
70 -- -fmax-simplifier-iterations=0
71 -- -dshow-passes
72
73 common library-deps
74 hs-source-dirs: src
75 build-depends:
76 , async >=2.2
77 , base >=4.6 && <5
78 , bytestring >=0.10
79 , containers >=0.5
80 , directory >=1.3
81 , fast-logger >=3.0
82 , filepath >=1.4
83 , filepattern >=0.1
84 , http-client >=0.6
85 , http-media >=0.7
86 , lvar
87 , microlens
88 , peano
89 , reflection
90 , symantic-base >=0.3
91 , text >=1.2
92 , transformers >=0.5
93 , url-slug >=0.1
94 , wai
95 , wai-middleware-static
96 , wai-websockets
97 , warp
98 , websockets
99
100 library
101 import: boilerplate, library-deps
102 exposed-modules:
103 Webc
104 Webc.Classes
105 Webc.Compiler
106 Webc.Decoder
107 Webc.Encoder
108 Webc.Generator
109 Webc.MIME
110
111 --Webc.Decoder
112 test-suite webc-tests
113 -- library-deps is only to have ghcid reloaded on changes in src
114 import: boilerplate, library-deps
115 type: exitcode-stdio-1.0
116 hs-source-dirs: tests
117 main-is: Main.hs
118 other-modules:
119 Examples.Ex01
120 Examples.Ex02
121 Goldens
122 HUnits
123 Paths_webc
124 Utils
125
126 autogen-modules: Paths_webc
127 build-depends:
128 , base >=4.6 && <5
129 , containers >=0.5
130 , monad-classes
131 , relude >=1 && <2
132 , symantic-base >=0.5
133 , tasty >=0.11
134 , tasty-golden >=2.3
135 , tasty-hunit >=0.9
136 , text >=1.2
137 , transformers >=0.5
138 , url-slug >=0.1