aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-01-14 16:31:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-14 16:31:09 -0800
commitebf413cdec8157b96db0e510bc0c15a9e8adf0e3 (patch)
tree3faa2ebfaef49ca707a500268906b6f211872a58
parentdfac1239d94401bb45fce65d74fa26f360c6decd (diff)
downloadpandoc-ebf413cdec8157b96db0e510bc0c15a9e8adf0e3.tar.gz
Update filters doc with better cabal v2 instructions.
-rw-r--r--doc/filters.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/filters.md b/doc/filters.md
index b7d6aa45d..1e2b0db0d 100644
--- a/doc/filters.md
+++ b/doc/filters.md
@@ -171,12 +171,12 @@ and then
pandoc -f SOURCEFORMAT -t TARGETFORMAT --filter ./behead.hs
(It is also necessary that `pandoc-types` be installed in the
-local package repository: `cabal install pandoc-types` should
-ensure this.)
+local package repository. To do this using cabal-install,
+`cabal v2-update && cabal v2-install --lib pandoc-types`.)
Alternatively, we could compile the filter:
- ghc --make behead.hs
+ ghc -package-env=default --make behead.hs
pandoc -f SOURCEFORMAT -t TARGETFORMAT --filter ./behead
Note that if the filter is placed in the system PATH, then the initial