@@ -1,5 +1,6 @@
11Name: pandoc
22Version: 0.45
3+Cabal-Version: >= 1.2
34License: GPL
45License-File: COPYING
56Copyright: (c) 2006-2007 John MacFarlane
@@ -31,32 +32,41 @@ Description: Pandoc is a Haskell library for converting from one markup
3132 which convert this native representation into a target
3233 format. Thus, adding an input or output format requires
3334 only adding a reader or writer.
34−Build-Depends: base, parsec, xhtml, mtl, regex-compat, network
35−Hs-Source-Dirs: src
36−Exposed-Modules: Text.Pandoc,
37− Text.Pandoc.Blocks,
38− Text.Pandoc.Definition,
39− Text.Pandoc.CharacterReferences,
40− Text.Pandoc.Shared,
41− Text.Pandoc.UTF8,
42− Text.Pandoc.ASCIIMathML,
43− Text.Pandoc.Readers.HTML,
44− Text.Pandoc.Readers.LaTeX,
45− Text.Pandoc.Readers.Markdown,
46− Text.Pandoc.Readers.RST,
47− Text.Pandoc.Writers.DefaultHeaders,
48− Text.Pandoc.Writers.Docbook,
49− Text.Pandoc.Writers.HTML,
50− Text.Pandoc.Writers.LaTeX,
51− Text.Pandoc.Writers.ConTeXt,
52− Text.Pandoc.Writers.Man,
53− Text.Pandoc.Writers.Markdown,
54− Text.Pandoc.Writers.RST,
55− Text.Pandoc.Writers.RTF,
56− Text.Pandoc.Writers.S5
57−Ghc-Options: -O0
35+Flag splitBase
36+ Description: Choose the new, smaller, split-up base package.
37+ Default: True
5838
59−Executable: pandoc
60−Hs-Source-Dirs: src
61−Main-Is: Main.hs
62−Ghc-Options: -O0
39+Library
40+ if flag(splitBase)
41+ Build-Depends: base >= 3, pretty, containers
42+ else
43+ Build-Depends: base < 3
44+ Build-Depends: parsec, xhtml, mtl, regex-compat, network
45+ Hs-Source-Dirs: src
46+ Exposed-Modules: Text.Pandoc,
47+ Text.Pandoc.Blocks,
48+ Text.Pandoc.Definition,
49+ Text.Pandoc.CharacterReferences,
50+ Text.Pandoc.Shared,
51+ Text.Pandoc.UTF8,
52+ Text.Pandoc.ASCIIMathML,
53+ Text.Pandoc.Readers.HTML,
54+ Text.Pandoc.Readers.LaTeX,
55+ Text.Pandoc.Readers.Markdown,
56+ Text.Pandoc.Readers.RST,
57+ Text.Pandoc.Writers.DefaultHeaders,
58+ Text.Pandoc.Writers.Docbook,
59+ Text.Pandoc.Writers.HTML,
60+ Text.Pandoc.Writers.LaTeX,
61+ Text.Pandoc.Writers.ConTeXt,
62+ Text.Pandoc.Writers.Man,
63+ Text.Pandoc.Writers.Markdown,
64+ Text.Pandoc.Writers.RST,
65+ Text.Pandoc.Writers.RTF,
66+ Text.Pandoc.Writers.S5
67+ Ghc-Options: -O2
68+
69+Executable pandoc
70+ Hs-Source-Dirs: src
71+ Main-Is: Main.hs
72+ Ghc-Options: -O2