summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-08-08 15:15:58 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-08-08 15:15:58 -0700
commit99bb066bb925134b506d39c8d6694fe81337d9c1 (patch)
tree51beae592444e1da080c774aac4e747744c4231f /pandoc.cabal
parent83f263110f364e87d8c0908b4a52be801aa77802 (diff)
Pass writename as argument to filters.
This way filters can figure out what the target format is and react appropriately. Example: #!/usr/bin/env runghc import Text.Pandoc.JSON import Data.Char main = toJSONFilter cap where cap (Just "html") (Str xs) = Str $ map toUpper xs cap _ x = x This capitalizes text only for html output.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal2
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 8210bfce5..3903fe606 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -352,8 +352,8 @@ Executable pandoc
bytestring >= 0.9 && < 0.11,
extensible-exceptions >= 0.1 && < 0.2,
highlighting-kate >= 0.5.5 && < 0.6,
+ aeson >= 0.6 && < 0.7,
HTTP >= 4000.0.5 && < 4000.3,
- process >= 1 && < 1.2,
citeproc-hs >= 0.3.7 && < 0.4
Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
Ghc-Prof-Options: -auto-all -caf-all -rtsopts -with-rtsopts=-K16m