]> Git — Sourcephile - julm/worksheets.git/blob - worksheets.cabal
update
[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 , megaparsec
95 , parser-combinators
96 , pretty-simple
97 , radix-tree
98 , safe-decimal
99 , scientific
100 , split
101 , sqlite-simple
102 , text >=2.1
103 , text-short
104 , transformers
105 , validity
106 , vector
107
108 -- , large-records
109 -- , large-generics
110 -- , symantic-base
111 --, pandoc-types
112 --, pandoc
113
114 library
115 import: haskell, library-deps
116 hs-source-dirs: src
117 autogen-modules: Paths_worksheets
118 exposed-modules:
119 Language
120 Language.Chinese
121 Language.Chinese.Pinyin
122 Language.English
123 Language.French
124 Language.Pronunciation
125 Rosetta.Reading
126 Rosetta.Writing
127 Wiktionary
128 Worksheets.Utils.Char
129 Worksheets.Utils.Generics
130 Worksheets.Utils.HTML
131 Worksheets.Utils.IPA
132 Worksheets.Utils.JSON
133 Worksheets.Utils.Paper
134 Worksheets.Utils.Prelude
135 Worksheets.Utils.Probability
136 Worksheets.Utils.SQL
137 Worksheets.Utils.TypeDefault
138
139 other-modules: Paths_worksheets
140 build-depends: base >=4.10 && <5
141
142 common anki-deps
143 import:
144 build-depends:
145 , aeson >=2.1.2.1
146 , array
147 , attoparsec
148 , attoparsec-aeson
149 , base >=4.10 && <5
150 , bytestring
151 , containers
152 , direct-sqlite
153 , directory
154 , filepath
155 , ipa
156 , pretty-simple
157 , python-pickle
158 , scientific
159 , sqlite-simple
160 , text >=2.1
161 , text-short
162 , time
163 , transformers
164
165 library anki
166 import: haskell, anki-deps
167 hs-source-dirs: libs/anki/src
168 exposed-modules:
169 Anki
170 Anki.Fields
171 Anki.Tables.Cards
172 Anki.Tables.Collections
173 Anki.Tables.Configs
174 Anki.Tables.DeckConfigs
175 Anki.Tables.Decks
176 Anki.Tables.Fields
177 Anki.Tables.Graves
178 Anki.Tables.Notes
179 Anki.Tables.Notetypes
180 Anki.Tables.Profiles
181 Anki.Tables.ReviewLogs
182 Anki.Tables.Tags
183 Anki.Tables.Templates
184 Anki.Utils.Prelude
185 Anki.Utils.SQL
186
187 test-suite worksheets-tests
188 import: haskell, library-deps, anki-deps
189 type: exitcode-stdio-1.0
190 hs-source-dirs: tests
191 main-is: Spec.hs
192
193 -- ExplanationNote: manual listing gives more control
194 -- especially to quickly comment-out some tests.
195 -- build-tool-depends: sydtest-discover:sydtest-discover
196 ghc-options: -threaded -rtsopts -with-rtsopts=-N
197 autogen-modules: Paths_worksheets
198 other-modules:
199 Language.ChineseSpec
200 Language.EnglishSpec
201 Language.FrenchSpec
202 Paths_worksheets
203 Rosetta.ReadingSpec
204 Rosetta.WritingSpec
205 Utils.Pronunciation
206 Utils.Tests
207 WiktionarySpec
208
209 build-depends:
210 , filepath
211 , genvalidity
212 , genvalidity-containers
213 , genvalidity-sydtest
214 , genvalidity-text
215 , genvalidity-time
216 , ipa
217 , pretty-simple
218 , relude
219 , sydtest >=0.19
220 , validity
221 , validity-containers
222 , validity-text
223 , worksheets
224
225 --executable worksheets
226 -- import: haskell, library-deps
227 -- autogen-modules: Paths_worksheets
228 -- other-modules: Paths_worksheets
229 -- build-depends:
230 -- , bytestring
231 -- , filepath
232 -- , optparse-applicative
233 -- , pretty-simple
234 -- , relude
235 -- , text
236 --
237 -- hs-source-dirs: app
238 -- main-is: Main.hs