@@ -1,19 +1,19 @@
1−Name: pandoc
2−Version: 2.0
3−Cabal-Version: >= 1.10
4−Build-Type: Custom
5−License: GPL
6−License-File: COPYING.md
7−Copyright: (c) 2006-2017 John MacFarlane
8−Author: John MacFarlane <jgm@berkeley.edu>
9−Maintainer: John MacFarlane <jgm@berkeley.edu>
10−Bug-Reports: https://github.com/jgm/pandoc/issues
11−Stability: alpha
12−Homepage: http://pandoc.org
13−Category: Text
14−Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
15−Synopsis: Conversion between markup formats
16−Description: Pandoc is a Haskell library for converting from one markup
1+name: pandoc
2+version: 2.0
3+cabal-version: >= 1.10
4+build-type: Custom
5+license: GPL
6+license-file: COPYING.md
7+copyright: (c) 2006-2017 John MacFarlane
8+author: John MacFarlane <jgm@berkeley.edu>
9+maintainer: John MacFarlane <jgm@berkeley.edu>
10+bug-reports: https://github.com/jgm/pandoc/issues
11+stability: alpha
12+homepage: http://pandoc.org
13+category: Text
14+tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
15+synopsis: Conversion between markup formats
16+description: Pandoc is a Haskell library for converting from one markup
1717 format to another, and a command-line tool that uses
1818 this library. It can read several dialects of Markdown and
1919 (subsets of) HTML, reStructuredText, LaTeX, DocBook,
@@ -35,7 +35,7 @@ Description: Pandoc is a Haskell library for converting from one markup
3535 which convert this native representation into a target
3636 format. Thus, adding an input or output format requires
3737 only adding a reader or writer.
38−Data-Files:
38+data-files:
3939 -- templates
4040 data/templates/default.html4
4141 data/templates/default.html5
@@ -119,7 +119,7 @@ Data-Files:
119119 data/jats.csl
120120 -- documentation
121121 MANUAL.txt, COPYRIGHT
122−Extra-Source-Files:
122+extra-source-files:
123123 -- documentation
124124 INSTALL.md, BUGS, README.md, CONTRIBUTING.md, changelog
125125 man/pandoc.1
@@ -261,36 +261,39 @@ Extra-Source-Files:
261261 test/odt/markdown/*.md
262262 test/odt/native/*.native
263263 test/lua/*.lua
264−Source-repository head
264+source-repository head
265265 type: git
266266 location: git://github.com/jgm/pandoc.git
267267
268−Flag static
268+flag static
269269 Description: Use static linking for pandoc executable.
270270 Default: False
271271
272−Flag embed_data_files
272+flag embed_data_files
273273 Description: Embed data files in binary for relocatable executable.
274274 Default: False
275275
276−Flag trypandoc
276+flag trypandoc
277277 Description: Build trypandoc cgi executable.
278278 Default: False
279279
280−Flag weigh-pandoc
280+flag weigh-pandoc
281281 Description: Build weigh-pandoc to measure memory usage.
282282 Default: False
283283
284−Flag network-uri
284+flag network-uri
285285 Description: Get Network.URI from the network-uri package
286286 Default: True
287287
288−Flag old-locale
288+flag old-locale
289289 Description: Use old-locale and time < 1.5
290290 Default: False
291291
292−Library
293− Build-Depends: base >= 4.7 && < 5,
292+custom-setup
293+ setup-depends: base, Cabal
294+
295+library
296+ build-depends: base >= 4.7 && < 5,
294297 syb >= 0.1 && < 0.8,
295298 containers >= 0.4.2.1 && < 0.6,
296299 unordered-containers >= 0.2 && < 0.3,
@@ -336,37 +339,37 @@ Library
336339 http-types >= 0.8 && < 0.10,
337340 csv-conduit >= 0.6 && < 0.7
338341 if os(windows)
339− Cpp-options: -D_WINDOWS
342+ cpp-options: -D_WINDOWS
340343 else
341− Build-Depends: unix >= 2.4 && < 2.8
344+ build-depends: unix >= 2.4 && < 2.8
342345 if flag(old-locale)
343− Build-Depends: old-locale >= 1 && < 1.1,
346+ build-depends: old-locale >= 1 && < 1.1,
344347 time >= 1.2 && < 1.5
345348 else
346− Build-Depends: time >= 1.5 && < 1.9
349+ build-depends: time >= 1.5 && < 1.9
347350 if flag(network-uri)
348− Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
351+ build-depends: network-uri >= 2.6 && < 2.7, network >= 2.6
349352 else
350− Build-Depends: network >= 2 && < 2.6
353+ build-depends: network >= 2 && < 2.6
351354 if flag(embed_data_files)
352355 cpp-options: -DEMBED_DATA_FILES
353356 build-depends: file-embed >= 0.0 && < 0.1
354357 other-modules: Text.Pandoc.Data
355358 if os(windows)
356− Cpp-options: -D_WINDOWS
357− Ghc-Options: -Wall -fno-warn-unused-do-bind
358− Ghc-Prof-Options: -fprof-auto-exported
359− Default-Language: Haskell98
360− Other-Extensions: PatternGuards, OverloadedStrings,
359+ cpp-options: -D_WINDOWS
360+ ghc-options: -Wall -fno-warn-unused-do-bind
361+ ghc-prof-options: -fprof-auto-exported
362+ default-language: Haskell98
363+ other-extensions: PatternGuards, OverloadedStrings,
361364 ScopedTypeVariables, GeneralizedNewtypeDeriving,
362365 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
363366 FlexibleInstances
364− Hs-Source-Dirs: src
367+ hs-source-dirs: src
365368 if impl(ghc < 7.10)
366− Hs-Source-Dirs: prelude
367− Other-Modules: Prelude
369+ hs-source-dirs: prelude
370+ other-modules: Prelude
368371
369− Exposed-Modules: Text.Pandoc,
372+ exposed-modules: Text.Pandoc,
370373 Text.Pandoc.App,
371374 Text.Pandoc.Options,
372375 Text.Pandoc.Extensions,
@@ -444,7 +447,7 @@ Library
444447 Text.Pandoc.Emoji,
445448 Text.Pandoc.ImageSize,
446449 Text.Pandoc.Class
447− Other-Modules: Text.Pandoc.Readers.Docx.Lists,
450+ other-modules: Text.Pandoc.Readers.Docx.Lists,
448451 Text.Pandoc.Readers.Docx.Combine,
449452 Text.Pandoc.Readers.Docx.Parse,
450453 Text.Pandoc.Readers.Docx.Util,
@@ -481,67 +484,67 @@ Library
481484 Text.Pandoc.Compat.Time,
482485 Paths_pandoc
483486
484− Buildable: True
487+ buildable: True
485488
486−Executable pandoc
487− Build-Depends: pandoc, base >= 4.7 && < 5
488− Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
489− Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
489+executable pandoc
490+ build-depends: pandoc, base >= 4.7 && < 5
491+ ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
492+ ghc-prof-options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
490493 if flag(static)
491− Ld-options: -static
492− Default-Language: Haskell98
493− Other-Extensions: PatternGuards, OverloadedStrings,
494+ ld-options: -static
495+ default-language: Haskell98
496+ other-extensions: PatternGuards, OverloadedStrings,
494497 ScopedTypeVariables, GeneralizedNewtypeDeriving,
495498 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
496499 FlexibleInstances
497− Hs-Source-Dirs: .
500+ hs-source-dirs: .
498501 if impl(ghc < 7.10)
499− Hs-Source-Dirs: prelude
500− Other-Modules: Prelude
501− Main-Is: pandoc.hs
502− Buildable: True
503− Other-Modules: Paths_pandoc
502+ hs-source-dirs: prelude
503+ other-modules: Prelude
504+ main-is: pandoc.hs
505+ buildable: True
506+ other-modules: Paths_pandoc
504507
505−Executable trypandoc
506− Main-Is: trypandoc.hs
507− Hs-Source-Dirs: trypandoc
508+executable trypandoc
509+ main-is: trypandoc.hs
510+ hs-source-dirs: trypandoc
508511 if impl(ghc < 7.10)
509− Hs-Source-Dirs: prelude
510− Other-Modules: Prelude
512+ hs-source-dirs: prelude
513+ other-modules: Prelude
511514 default-language: Haskell2010
512515 if flag(trypandoc)
513− Build-Depends: base, aeson, pandoc,
516+ build-depends: base, aeson, pandoc,
514517 text, wai-extra, wai >= 0.3, http-types
515− Buildable: True
518+ buildable: True
516519 else
517− Buildable: False
520+ buildable: False
518521
519−Executable weigh-pandoc
520− Main-Is: weigh-pandoc.hs
521− Hs-Source-Dirs: benchmark
522+executable weigh-pandoc
523+ main-is: weigh-pandoc.hs
524+ hs-source-dirs: benchmark
522525 if impl(ghc < 7.10)
523− Hs-Source-Dirs: prelude
524− Other-Modules: Prelude
526+ hs-source-dirs: prelude
527+ other-modules: Prelude
525528 if flag(weigh-pandoc)
526− Build-Depends: pandoc,
529+ build-depends: pandoc,
527530 base >= 4.2 && < 5,
528531 text,
529532 weigh >= 0.0 && < 0.1,
530533 mtl >= 2.2 && < 2.3
531− Buildable: True
534+ buildable: True
532535 else
533− Buildable: False
534− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
535− Default-Language: Haskell98
536+ buildable: False
537+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
538+ default-language: Haskell98
536539
537−Test-Suite test-pandoc
538− Type: exitcode-stdio-1.0
539− Main-Is: test-pandoc.hs
540− Hs-Source-Dirs: test
540+test-suite test-pandoc
541+ type: exitcode-stdio-1.0
542+ main-is: test-pandoc.hs
543+ hs-source-dirs: test
541544 if impl(ghc < 7.10)
542− Hs-Source-Dirs: prelude
543− Other-Modules: Prelude
544− Build-Depends: base >= 4.2 && < 5,
545+ hs-source-dirs: prelude
546+ other-modules: Prelude
547+ build-depends: base >= 4.2 && < 5,
545548 syb >= 0.1 && < 0.8,
546549 pandoc,
547550 pandoc-types >= 1.17.1 && < 1.18,
@@ -563,7 +566,7 @@ Test-Suite test-pandoc
563566 executable-path >= 0.0 && < 0.1,
564567 zip-archive >= 0.2.3.4 && < 0.4,
565568 mtl >= 2.2 && < 2.3
566− Other-Modules: Tests.Old
569+ other-modules: Tests.Old
567570 Tests.Command
568571 Tests.Helpers
569572 Tests.Lua
@@ -591,21 +594,21 @@ Test-Suite test-pandoc
591594 Tests.Writers.RST
592595 Tests.Writers.TEI
593596 Tests.Writers.Muse
594− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
595− Default-Language: Haskell98
597+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
598+ default-language: Haskell98
596599
597600benchmark benchmark-pandoc
598− Type: exitcode-stdio-1.0
599− Main-Is: benchmark-pandoc.hs
600− Hs-Source-Dirs: benchmark
601+ type: exitcode-stdio-1.0
602+ main-is: benchmark-pandoc.hs
603+ hs-source-dirs: benchmark
601604 if impl(ghc < 7.10)
602− Hs-Source-Dirs: prelude
603− Other-Modules: Prelude
604− Build-Depends: pandoc,
605+ hs-source-dirs: prelude
606+ other-modules: Prelude
607+ build-depends: pandoc,
605608 time, bytestring, containers,
606609 base >= 4.2 && < 5,
607610 text >= 0.11 && < 1.3,
608611 syb >= 0.1 && < 0.8,
609612 criterion >= 1.0 && < 1.3
610− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
611− Default-Language: Haskell98
613+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
614+ default-language: Haskell98