tarleb / pandoc

Universal markup converter
http://johnmacfarlane.net/pandoc
Other
3 stars 0 forks source link

Describe how to use updated packages via cabal or stack #10

Closed tarleb closed 3 months ago

tarleb commented 3 years ago

Pandoc uses many external packages. It is important to use unreleased packages during development. The necessary steps should be documented in the contribution guides.

argent0 commented 3 years ago

I don't think I understand what you mean by "unreleased".

I've done that by adding the folder to the packages section of stack.yaml

flags:
  pandoc:
    trypandoc: false
    embed_data_files: true
  QuickCheck:
    old-random: false
packages:
- '.'
- '../pandoc-types'
extra-deps:
- haddock-library-1.10.0
- hslua-1.3.0
- hslua-module-path-0.1.0
- jira-wiki-markup-1.4.0
- random-1.2.0
- unicode-collation-0.1.3
- citeproc-0.4
- commonmark-0.2
- commonmark-extensions-0.2.1.2
- commonmark-pandoc-0.2.1
ghc-options:
   "$locals": -fhide-source-paths -Wno-missing-home-modules
resolver: lts-17.12
nix:
  packages: [zlib]