From 4a841bfc5464907adea4cdd655485565565b40ae Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 3 Nov 2007 22:14:03 +0000 Subject: Use template haskell to avoid the need for templates: + Added library Text.Pandoc.Include, with a template haskell function $(includeStrFrom fname) to include a file as a string constant at compile time. + This removes the need for the 'templates' directory or Makefile target. These have been removed. + The base source directory has been changed from src to . + A new 'data' directory has been added, containing the ASCIIMathML.js script, writer headers, and S5 files. + The src/wrappers directory has been moved to 'wrappers'. + The Text.Pandoc.ASCIIMathML library is no longer needed, since Text.Pandoc.Writers.HTML can use includeStrFrom to include the ASCIIMathML.js code directly. It has been removed. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1063 788f1e2b-df1e-0410-8736-df70ead52e1b --- pandoc.cabal | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pandoc.cabal') diff --git a/pandoc.cabal b/pandoc.cabal index a37d0029c..887af2388 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -31,15 +31,14 @@ Description: Pandoc is a Haskell library for converting from one markup which convert this native representation into a target format. Thus, adding an input or output format requires only adding a reader or writer. -Build-Depends: base, parsec, xhtml, mtl, regex-compat, network -Hs-Source-Dirs: src +Build-Depends: base, parsec, xhtml, mtl, regex-compat, network, template-haskell, filepath +Hs-Source-Dirs: . Exposed-Modules: Text.Pandoc, Text.Pandoc.Blocks, Text.Pandoc.Definition, Text.Pandoc.CharacterReferences, Text.Pandoc.Shared, Text.Pandoc.UTF8, - Text.Pandoc.ASCIIMathML, Text.Pandoc.Readers.HTML, Text.Pandoc.Readers.LaTeX, Text.Pandoc.Readers.Markdown, @@ -54,9 +53,10 @@ Exposed-Modules: Text.Pandoc, Text.Pandoc.Writers.RST, Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.S5 -Ghc-Options: -O0 +Other-Modules: Text.Pandoc.Include +Ghc-Options: -O0 -fth Executable: pandoc -Hs-Source-Dirs: src +Hs-Source-Dirs: . Main-Is: Main.hs -Ghc-Options: -O0 +Ghc-Options: -O0 -fth -- cgit v1.2.3