Update filters doc with better cabal v2 instructions.

This commit is contained in:
John MacFarlane 2020-01-14 16:31:09 -08:00
parent dfac1239d9
commit ebf413cdec

View file

@ -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