@@ -99,6 +99,11 @@ Flag buildWebsite
9999 Default: False
100100 Manual: True
101101
102+Flag usePandoc
103+ Description: Include Pandoc support
104+ Default: True
105+ Manual: True
106+
102107Library
103108 Ghc-Options: -Wall
104109 Hs-Source-Dirs: lib
@@ -134,9 +139,6 @@ Library
134139 Hakyll.Web.Html
135140 Hakyll.Web.Html.RelativizeUrls
136141 Hakyll.Web.Paginate
137− Hakyll.Web.Pandoc
138− Hakyll.Web.Pandoc.Biblio
139− Hakyll.Web.Pandoc.FileType
140142 Hakyll.Web.Redirect
141143 Hakyll.Web.Tags
142144 Hakyll.Web.Template
@@ -156,7 +158,6 @@ Library
156158 Hakyll.Core.Provider.Internal
157159 Hakyll.Core.Provider.MetadataCache
158160 Hakyll.Core.Util.Parser
159− Hakyll.Web.Pandoc.Binary
160161 Paths_hakyll
161162
162163 Build-Depends:
@@ -173,14 +174,10 @@ Library
173174 filepath >= 1.0 && < 1.5,
174175 lrucache >= 1.1.1 && < 1.3,
175176 mtl >= 1 && < 2.3,
176− network >= 2.6 && < 2.7,
177177 network-uri >= 2.6 && < 2.7,
178− pandoc >= 2.0.5 && < 2.2,
179− pandoc-citeproc >= 0.14 && < 0.15,
180178 parsec >= 3.0 && < 3.2,
181179 process >= 1.6 && < 1.7,
182180 random >= 1.0 && < 1.2,
183− regex-base >= 0.93 && < 0.94,
184181 regex-tdfa >= 1.1 && < 1.3,
185182 resourcet >= 1.1 && < 1.3,
186183 scientific >= 0.3.4 && < 0.4,
@@ -222,6 +219,19 @@ Library
222219 Cpp-options:
223220 -DCHECK_EXTERNAL
224221
222+ If flag(usePandoc)
223+ Exposed-Modules:
224+ Hakyll.Web.Pandoc
225+ Hakyll.Web.Pandoc.Biblio
226+ Hakyll.Web.Pandoc.FileType
227+ Other-Modules:
228+ Hakyll.Web.Pandoc.Binary
229+ Build-Depends:
230+ pandoc >= 2.0.5 && < 2.2,
231+ pandoc-citeproc >= 0.14 && < 0.15
232+ Cpp-options:
233+ -DUSE_PANDOC
234+
225235Test-suite hakyll-tests
226236 Type: exitcode-stdio-1.0
227237 Hs-source-dirs: tests
@@ -243,7 +253,6 @@ Test-suite hakyll-tests
243253 Hakyll.Web.CompressCss.Tests
244254 Hakyll.Web.Html.RelativizeUrls.Tests
245255 Hakyll.Web.Html.Tests
246− Hakyll.Web.Pandoc.FileType.Tests
247256 Hakyll.Web.Template.Context.Tests
248257 Hakyll.Web.Template.Tests
249258 TestSuite.Util
@@ -256,61 +265,31 @@ Test-suite hakyll-tests
256265 tasty-quickcheck >= 0.8 && < 0.11,
257266 -- Copy pasted from hakyll dependencies:
258267 base >= 4.8 && < 5,
259− binary >= 0.5 && < 0.10,
260− blaze-html >= 0.5 && < 0.10,
261− blaze-markup >= 0.5.1 && < 0.9,
262268 bytestring >= 0.9 && < 0.11,
263269 containers >= 0.3 && < 0.6,
264− cryptohash >= 0.7 && < 0.12,
265− data-default >= 0.4 && < 0.8,
266− deepseq >= 1.3 && < 1.5,
267− directory >= 1.0 && < 1.4,
268270 filepath >= 1.0 && < 1.5,
269− lrucache >= 1.1.1 && < 1.3,
270− mtl >= 1 && < 2.3,
271− network >= 2.6 && < 2.7,
272− network-uri >= 2.6 && < 2.7,
273− pandoc >= 2.0.5 && < 2.2,
274− pandoc-citeproc >= 0.14 && < 0.15,
275− parsec >= 3.0 && < 3.2,
276− process >= 1.6 && < 1.7,
277− random >= 1.0 && < 1.2,
278− regex-base >= 0.93 && < 0.94,
279− regex-tdfa >= 1.1 && < 1.3,
280− resourcet >= 1.1 && < 1.3,
281− scientific >= 0.3.4 && < 0.4,
282− tagsoup >= 0.13.1 && < 0.15,
283271 text >= 0.11 && < 1.3,
284− time >= 1.8 && < 1.10,
285− time-locale-compat >= 0.1 && < 0.2,
286272 unordered-containers >= 0.2 && < 0.3,
287− vector >= 0.11 && < 0.13,
288− yaml >= 0.8.11 && < 0.9,
289− optparse-applicative >= 0.12 && < 0.15
273+ yaml >= 0.8.11 && < 0.9
290274
291275 If flag(previewServer)
292− Build-depends:
293− wai >= 3.2 && < 3.3,
294− warp >= 3.2 && < 3.3,
295− wai-app-static >= 3.1 && < 3.2,
296− http-types >= 0.9 && < 0.13,
297− fsnotify >= 0.2 && < 0.3
298276 Cpp-options:
299277 -DPREVIEW_SERVER
300278
301279 If flag(watchServer)
302− Build-depends:
303− fsnotify >= 0.2 && < 0.3
304280 Cpp-options:
305281 -DWATCH_SERVER
306282
307283 If flag(checkExternal)
308− Build-depends:
309− http-conduit >= 2.2 && < 2.4,
310− http-types >= 0.7 && < 0.13
311284 Cpp-options:
312285 -DCHECK_EXTERNAL
313286
287+ If flag(usePandoc)
288+ Other-modules:
289+ Hakyll.Web.Pandoc.FileType.Tests
290+ Cpp-options:
291+ -DUSE_PANDOC
292+
314293Executable hakyll-init
315294 Main-is: Init.hs
316295 Ghc-options: -Wall -threaded