]> Git — Sourcephile - julm/worksheets.git/blob - worksheets.cabal
wip
[julm/worksheets.git] / worksheets.cabal
1 cabal-version: 3.0
2 name: worksheets
3 maintainer: Julien Moutinho <julm+worksheets@sourcephile.fr>
4 bug-reports:
5 https://radicle.sourcephile.fr/nodes/radicle-mermet.sourcephile.fr/rad:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/issues
6
7 homepage:
8 https://radicle.sourcephile.fr/nodes/radicle-mermet.sourcephile.fr/rad:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9
10 author: Julien Moutinho <julm+worksheets@sourcephile.fr>
11 copyright: Julien Moutinho <julm+worksheets@sourcephile.fr>
12
13 -- PVP: +-+------- breaking API changes
14 -- | | +----- non-breaking API additions
15 -- | | | +--- code changes with no API change
16 version: 0.0.0.20250617
17 stability: experimental
18 category: Worksheets
19 synopsis: Worksheets
20 description: Worksheets
21 build-type: Simple
22 tested-with: GHC ==9.6.6
23 extra-doc-files:
24 extra-tmp-files:
25 data-dir: data
26
27 source-repository head
28 type: git
29 location:
30 https://radicle-mermet.sourcephile.fr/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.git
31
32 source-repository head
33 type: rad
34 location: rad://XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
35
36 common haskell
37 default-language: Haskell2010
38 default-extensions:
39 BangPatterns
40 BlockArguments
41 DataKinds
42 DefaultSignatures
43 DeriveFunctor
44 DeriveGeneric
45 DerivingStrategies
46 DerivingVia
47 FlexibleContexts
48 FlexibleInstances
49 GADTSyntax
50 GeneralizedNewtypeDeriving
51 ImportQualifiedPost
52 LambdaCase
53 MultiParamTypeClasses
54 NamedFieldPuns
55 NoImplicitPrelude
56 OverloadedStrings
57 PartialTypeSignatures
58 PatternSynonyms
59 RecordWildCards
60 RoleAnnotations
61 ScopedTypeVariables
62 TupleSections
63 TypeApplications
64 TypeFamilies
65 TypeOperators
66 ViewPatterns
67
68 ghc-options:
69 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
70 -Wno-partial-fields -fprint-potential-instances
71 -Wno-missing-signatures -Wno-unused-do-bind
72 -Wno-partial-type-signatures
73
74 common library-deps
75 import:
76 build-depends:
77 , aeson >=2.1.2.1
78 , anki
79 , array
80 , attoparsec
81 , attoparsec-aeson
82 , base >=4.10 && <5
83 , blaze-builder
84 , blaze-html
85 , blaze-markup
86 , bytestring
87 , cassava
88 , containers
89 , data-default
90 , direct-sqlite
91 , filepath
92 , generic-data
93 , ipa
94 , ListZipper
95 , megaparsec
96 , parser-combinators
97 , pretty-simple
98 , radix-tree
99 , random
100 , random-shuffle
101 , safe-decimal
102 , scientific
103 , split
104 , sqlite-simple
105 , svg-builder
106 , text >=2.1
107 , text-short
108 , transformers
109 , validity
110 , vector
111
112 -- , large-records
113 -- , large-generics
114 -- , symantic-base
115 --, pandoc-types
116 --, pandoc
117
118 library
119 import: haskell, library-deps
120 hs-source-dirs: src
121 autogen-modules: Paths_worksheets
122 exposed-modules:
123 Graph.DOT
124 Language
125 Language.Chinese
126 Language.Chinese.Pinyin
127 Language.English
128 Language.French
129 Language.Pronunciation
130 Rosetta.Matching
131 Rosetta.Reading
132 Rosetta.Writing
133 Wiktionary
134 Worksheets.Utils.Char
135 Worksheets.Utils.Generics
136 Worksheets.Utils.HTML
137 Worksheets.Utils.IPA
138 Worksheets.Utils.JSON
139 Worksheets.Utils.Paper
140 Worksheets.Utils.Prelude
141 Worksheets.Utils.Probability
142 Worksheets.Utils.SQL
143 Worksheets.Utils.TypeDefault
144
145 other-modules: Paths_worksheets
146 build-depends: base >=4.10 && <5
147
148 common anki-deps
149 import:
150 build-depends:
151 , aeson >=2.1.2.1
152 , arithmoi
153 , array
154 , attoparsec
155 , attoparsec-aeson
156 , base >=4.10 && <5
157 , bytestring
158 , colour
159 , containers
160 , diagrams
161 , diagrams-contrib
162 , diagrams-core
163 , diagrams-lib
164 , diagrams-svg
165 , direct-sqlite
166 , directory
167 , filepath
168 , ipa
169 , palette
170 , pretty-simple
171 , python-pickle
172 , scientific
173 , sqlite-simple
174 , text >=2.1
175 , text-short
176 , time
177 , transformers
178
179 library anki
180 import: haskell, anki-deps
181 hs-source-dirs: libs/anki/src
182 exposed-modules:
183 Anki
184 Anki.Fields
185 Anki.Tables.Cards
186 Anki.Tables.Collections
187 Anki.Tables.Configs
188 Anki.Tables.DeckConfigs
189 Anki.Tables.Decks
190 Anki.Tables.Fields
191 Anki.Tables.Graves
192 Anki.Tables.Notes
193 Anki.Tables.Notetypes
194 Anki.Tables.Profiles
195 Anki.Tables.ReviewLogs
196 Anki.Tables.Tags
197 Anki.Tables.Templates
198 Anki.Utils.Prelude
199 Anki.Utils.SQL
200
201 test-suite worksheets-tests
202 import: haskell, library-deps, anki-deps
203 type: exitcode-stdio-1.0
204 hs-source-dirs: tests
205 main-is: Spec.hs
206
207 -- ExplanationNote: manual listing gives more control
208 -- especially to quickly comment-out some tests.
209 -- build-tool-depends: sydtest-discover:sydtest-discover
210 ghc-options: -threaded -rtsopts -with-rtsopts=-N
211 autogen-modules: Paths_worksheets
212 other-modules:
213 Language.ChineseSpec
214 Language.EnglishSpec
215 Language.FrenchSpec
216 MathSpec
217 Paths_worksheets
218 Recipes
219 RecipesSpec
220 Rosetta.MatchingSpec
221 Rosetta.ReadingSpec
222 Rosetta.WritingSpec
223 Utils.Pronunciation
224 Utils.Tests
225 WiktionarySpec
226
227 build-depends:
228 , filepath
229 , genvalidity
230 , genvalidity-containers
231 , genvalidity-sydtest
232 , genvalidity-text
233 , genvalidity-time
234 , ipa
235 , pretty-simple
236 , relude
237 , sydtest >=0.19
238 , validity
239 , validity-containers
240 , validity-text
241 , worksheets
242
243 --executable worksheets
244 -- import: haskell, library-deps
245 -- autogen-modules: Paths_worksheets
246 -- other-modules: Paths_worksheets
247 -- build-depends:
248 -- , bytestring
249 -- , filepath
250 -- , optparse-applicative
251 -- , pretty-simple
252 -- , relude
253 -- , text
254 --
255 -- hs-source-dirs: app
256 -- main-is: Main.hs