@@ -186,7 +186,7 @@ Flag tests
186186 Default: False
187187
188188Library
189− -- Note: the following material must be in both Library and Executable stanzas.
189+ -- Note: the following is duplicated in all stanzas.
190190 -- It needs to be duplicated because of the library & executable flags.
191191 -- BEGIN DUPLICATED SECTION
192192 Build-Depends: containers >= 0.1 && < 0.5,
@@ -220,14 +220,19 @@ Library
220220 else
221221 Build-depends: base >= 3 && < 4
222222 if impl(ghc >= 6.12)
223− Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
223+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
224224 else
225225 Ghc-Options: -O2 -Wall
226226 if impl(ghc >= 7.0.1)
227227 Ghc-Prof-Options: -auto-all -caf-all -rtsopts
228228 else
229229 Ghc-Prof-Options: -auto-all -caf-all
230− Extensions: CPP
230+ Default-Language: Haskell2010
231+ Default-Extensions: CPP
232+ Other-Extensions: PatternGuards, OverloadedStrings,
233+ ScopedTypeVariables, GeneralizedNewtypeDeriving,
234+ RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
235+ FlexibleInstances
231236 Hs-Source-Dirs: src
232237 -- END DUPLICATED SECTION
233238
@@ -279,7 +284,7 @@ Library
279284 Buildable: False
280285
281286Executable pandoc
282− -- Note: the following material must be in both Library and Executable stanzas.
287+ -- Note: the following is duplicated in all stanzas.
283288 -- It needs to be duplicated because of the library & executable flags.
284289 -- BEGIN DUPLICATED SECTION
285290 Build-Depends: containers >= 0.1 && < 0.5,
@@ -313,14 +318,19 @@ Executable pandoc
313318 else
314319 Build-depends: base >= 3 && < 4
315320 if impl(ghc >= 6.12)
316− Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
321+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
317322 else
318323 Ghc-Options: -O2 -Wall
319324 if impl(ghc >= 7.0.1)
320325 Ghc-Prof-Options: -auto-all -caf-all -rtsopts
321326 else
322327 Ghc-Prof-Options: -auto-all -caf-all
323− Extensions: CPP
328+ Default-Language: Haskell2010
329+ Default-Extensions: CPP
330+ Other-Extensions: PatternGuards, OverloadedStrings,
331+ ScopedTypeVariables, GeneralizedNewtypeDeriving,
332+ RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
333+ FlexibleInstances
324334 Hs-Source-Dirs: src
325335 -- END DUPLICATED SECTION
326336
@@ -331,35 +341,81 @@ Executable pandoc
331341 Buildable: False
332342
333343Executable test-pandoc
334− Hs-Source-Dirs: src
335344 Main-Is: test-pandoc.hs
345+ -- Note: the following is duplicated in all stanzas.
346+ -- It needs to be duplicated because of the library & executable flags.
347+ -- BEGIN DUPLICATED SECTION
348+ Build-Depends: containers >= 0.1 && < 0.5,
349+ parsec >= 3.1 && < 3.2,
350+ blaze-html >= 0.4.3.0 && < 0.5,
351+ mtl >= 1.1 && < 2.1,
352+ network >= 2 && < 2.4,
353+ filepath >= 1.1 && < 1.4,
354+ process >= 1 && < 1.2,
355+ directory >= 1 && < 1.2,
356+ bytestring >= 0.9 && < 1.0,
357+ zip-archive >= 0.1.1.7 && < 0.2,
358+ utf8-string >= 0.3 && < 0.4,
359+ old-locale >= 1 && < 1.1,
360+ time >= 1.2 && < 1.5,
361+ HTTP >= 4000.0.5 && < 4000.3,
362+ texmath >= 0.6 && < 0.7,
363+ xml >= 1.3.12 && < 1.4,
364+ random >= 1 && < 1.1,
365+ extensible-exceptions >= 0.1 && < 0.2,
366+ citeproc-hs >= 0.3.4 && < 0.4,
367+ pandoc-types >= 1.9.0.2 && < 1.10,
368+ json >= 0.4 && < 0.6,
369+ tagsoup >= 0.12.5 && < 0.13,
370+ base64-bytestring >= 0.1 && < 0.2,
371+ zlib >= 0.5 && <= 0.6,
372+ highlighting-kate >= 0.5.0.1 && < 0.6,
373+ temporary >= 1.1 && < 1.2
374+ if impl(ghc >= 6.10)
375+ Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
376+ else
377+ Build-depends: base >= 3 && < 4
378+ if impl(ghc >= 6.12)
379+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
380+ else
381+ Ghc-Options: -O2 -Wall
382+ if impl(ghc >= 7.0.1)
383+ Ghc-Prof-Options: -auto-all -caf-all -rtsopts
384+ else
385+ Ghc-Prof-Options: -auto-all -caf-all
386+ Default-Language: Haskell2010
387+ Default-Extensions: CPP
388+ Other-Extensions: PatternGuards, OverloadedStrings,
389+ ScopedTypeVariables, GeneralizedNewtypeDeriving,
390+ RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
391+ FlexibleInstances
392+ Hs-Source-Dirs: src
393+ -- END DUPLICATED SECTION
336394 if impl(ghc >= 7)
337395 cpp-options: -D_LIT=lit
338396 else
339397 cpp-options: -D_LIT=$lit
340− if !flag(tests)
341− Buildable: False
398+ if flag(tests)
399+ Buildable: True
342400 else
343− if impl(ghc >= 6.12)
344− Ghc-Options: -Wall -fno-warn-unused-do-bind
345− else
346− Ghc-Options: -Wall
347− Extensions: CPP
348− Build-Depends: base >= 4 && < 5, Diff, test-framework >= 0.3 && < 0.5,
349− test-framework-hunit >= 0.2 && < 0.3,
350− test-framework-quickcheck2 >= 0.2.9 && < 0.3,
351− QuickCheck >= 2.4 && < 2.6,
352− HUnit >= 1.2 && < 1.3,
353− template-haskell >= 2.4 && < 2.8,
354− ansi-terminal == 0.5.*
355− Other-Modules: Tests.Old
356− Tests.Helpers
357− Tests.Arbitrary
358− Tests.Shared
359− Tests.Readers.LaTeX
360− Tests.Readers.Markdown
361− Tests.Readers.RST
362− Tests.Writers.Native
363− Tests.Writers.ConTeXt
364− Tests.Writers.HTML
365− Tests.Writers.Markdown
401+ Buildable: False
402+ Other-Extensions: TemplateHaskell, QuasiQuotes
403+ Default-Language: Haskell2010
404+ Build-Depends: base >= 4 && < 5, Diff, test-framework >= 0.3 && < 0.5,
405+ test-framework-hunit >= 0.2 && < 0.3,
406+ test-framework-quickcheck2 >= 0.2.9 && < 0.3,
407+ QuickCheck >= 2.4 && < 2.6,
408+ HUnit >= 1.2 && < 1.3,
409+ template-haskell >= 2.4 && < 2.8,
410+ ansi-terminal == 0.5.*
411+ Other-Modules: Tests.Old
412+ Tests.Helpers
413+ Tests.Arbitrary
414+ Tests.Shared
415+ Tests.Readers.LaTeX
416+ Tests.Readers.Markdown
417+ Tests.Readers.RST
418+ Tests.Writers.Native
419+ Tests.Writers.ConTeXt
420+ Tests.Writers.HTML
421+ Tests.Writers.Markdown