]> Git — Sourcephile - doclang.git/blob - hdoc.cabal
Add golden tests.
[doclang.git] / hdoc.cabal
1 author: Julien Moutinho <julm+hdoc@autogeree.net>
2 build-type: Simple
3 cabal-version: >= 1.18
4 category: Language
5 description:
6 Handle documents in:
7 - Texte Convivial Technique (TCT)
8 - Document Technique Convivial (DTC)
9 extra-source-files:
10 extra-doc-files:
11 extra-tmp-files:
12 license: GPL-3
13 license-file: COPYING
14 maintainer: Julien Moutinho <julm+hdoc@autogeree.net>
15 name: hdoc
16 stability: experimental
17 synopsis: Library and tools for technical and convivial documents
18 tested-with: GHC==8.2.2
19 version: 1.0.0.20180211
20
21 Source-Repository head
22 location: git://git.autogeree.net/hdoc
23 type: git
24
25 Flag debug
26 Default: False
27 Description: Turn on debugging settings.
28 Manual: True
29
30 Flag prof
31 Default: False
32 Description: Turn on profiling settings.
33 Manual: True
34
35 Library
36 exposed-modules:
37 Data.Locale
38 Data.TreeSeq.Strict
39 -- Data.TreeSeq.Strict.Zipper
40 -- Language.DTC.Document
41 -- Language.DTC.Anchor
42 -- Language.DTC.Read.TCT
43 -- Language.DTC.Sym
44 -- Language.DTC.Write.HTML5
45 -- Language.DTC.Write.Plain
46 -- Language.DTC.Write.XML
47 Language.RNC.Fixity
48 Language.RNC.Sym
49 Language.RNC.Write
50 Language.TCT
51 Language.TCT.Cell
52 Language.TCT.Elem
53 Language.TCT.Read
54 Language.TCT.Read.Cell
55 Language.TCT.Read.Elem
56 Language.TCT.Read.Token
57 Language.TCT.Read.Tree
58 Language.TCT.Tree
59 Language.TCT.Debug
60 Language.TCT.Write.HTML5
61 Language.TCT.Write.Plain
62 Language.TCT.Write.XML
63 Language.TCT.Utils
64 Language.XML
65 Text.Blaze.DTC
66 Text.Blaze.DTC.Attributes
67 Text.Blaze.HTML5
68 Text.Blaze.Utils
69 Text.Blaze.XML
70 default-language: Haskell2010
71 default-extensions:
72 LambdaCase
73 NamedFieldPuns
74 NoImplicitPrelude
75 RecordWildCards
76 TupleSections
77 ghc-options:
78 -Wall
79 -Wincomplete-uni-patterns
80 -Wincomplete-record-updates
81 -fno-warn-tabs
82 -fhide-source-paths
83 if flag(debug)
84 cpp-options: -DDEBUG
85 if flag(prof)
86 cpp-options: -DPROFILING
87 ghc-options: -fprof-auto
88 build-depends:
89 base >= 4.6 && < 5
90 , blaze-builder
91 , blaze-html
92 , blaze-markup
93 , bytestring
94 , containers > 0.5
95 , data-default-class >= 0.1.2.0
96 , data-default-instances-containers
97 , filepath
98 , megaparsec >= 6.2
99 , mono-traversable
100 , strict
101 , text
102 , text-format
103 , transformers
104 , treemap
105 -- , xml-types
106
107 Test-Suite hdoc-test
108 type: exitcode-stdio-1.0
109 default-language: Haskell2010
110 default-extensions:
111 LambdaCase
112 NamedFieldPuns
113 NoImplicitPrelude
114 RecordWildCards
115 ViewPatterns
116 ghc-options:
117 -Wall
118 -Wincomplete-uni-patterns
119 -Wincomplete-record-updates
120 -fno-warn-tabs
121 -fhide-source-paths
122 hs-source-dirs: test
123 main-is: Main.hs
124 other-modules:
125 Golden
126 -- HUnit
127 -- QuickCheck
128 build-depends:
129 base >= 4.6 && < 5
130 , blaze-markup
131 , blaze-html
132 , bytestring
133 , containers >= 0.5 && < 0.6
134 , deepseq
135 , filepath
136 , hdoc
137 -- , QuickCheck >= 2.0
138 , tasty >= 0.11
139 -- , tasty-hunit
140 , tasty-golden
141 -- , tasty-quickcheck
142 , text
143 , transformers >= 0.4 && < 0.6
144
145 Executable hdoc
146 default-language: Haskell2010
147 default-extensions:
148 ConstraintKinds
149 DataKinds
150 DefaultSignatures
151 EmptyDataDecls
152 FlexibleContexts
153 FlexibleInstances
154 LambdaCase
155 MultiParamTypeClasses
156 NamedFieldPuns
157 NoImplicitPrelude
158 PatternGuards
159 PolyKinds
160 Rank2Types
161 RecordWildCards
162 ScopedTypeVariables
163 StandaloneDeriving
164 TupleSections
165 TypeApplications
166 TypeOperators
167 ghc-options:
168 -Wall
169 -Wincomplete-uni-patterns
170 -Wincomplete-record-updates
171 -fno-warn-tabs
172 -fhide-source-paths
173 if flag(debug)
174 cpp-options: -DDEBUG
175 if flag(prof)
176 cpp-options: -DPROFILING
177 ghc-options: -fprof-auto -rtsopts
178 main-is: Main.hs
179 hs-source-dirs: exe/cli
180 other-modules:
181 Read
182 build-depends:
183 base >= 4.6 && < 5
184 , ansi-terminal >= 0.4 && < 0.8
185 , blaze-markup
186 , blaze-html
187 , bytestring
188 , containers >= 0.5 && < 0.6
189 , Decimal
190 , data-default-class
191 , deepseq
192 -- , directory
193 , optparse-applicative
194 , megaparsec
195 -- , monad-classes
196 -- , mono-traversable
197 -- , safe >= 0.2
198 , safe-exceptions
199 , semigroups
200 , strict
201 , hdoc
202 , text
203 , time
204 , transformers >= 0.4 && < 0.6
205 -- NOTE: needed for Control.Monad.Trans.Except
206 -- , treemap