Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with pandoc 2.9. #244

Closed
CGMossa opened this issue Feb 4, 2020 · 4 comments
Closed

Compatibility with pandoc 2.9. #244

CGMossa opened this issue Feb 4, 2020 · 4 comments

Comments

@CGMossa
Copy link

CGMossa commented Feb 4, 2020

I recently upgraded to pandoc 2.9. There are lots of vital and exciting updates to pandoc, but it is not yet compatible with pandoc-crossref.
I tried to upgrade the configuration-file with the new packages and also build pandoc itself with stack. It wasn't simple, and I had to enable allow-newer in order to do it.

@CGMossa
Copy link
Author

CGMossa commented Feb 4, 2020

This is my current stack.yaml-file:

flags:
  pandoc-crossref:
    enable_flaky_tests: true
ghc-options:
  $targets: -optl-fuse-ld=bfd
packages:
- .
allow-newer: true
extra-deps:
- roman-numerals-0.5.1.5
- pandoc-2.9
- HsYAML-0.2.1.0
- doclayout-0.2.0.1
- doctemplates-0.8.1
- haddock-library-1.8.0
- skylighting-0.8.3.2
- skylighting-core-0.8.3.2
- texmath-0.12
- pandoc-types-1.20
- regex-pcre-builtin-0.95.1.1.8.43
- regex-base-0.94.0.0
- emojis-0.1
resolver: lts-14.15

The problematic requirement is this - doclayout-0.2.0.1. If I make it - doclayout-0.3, then I get one complaint, and if I make it - doclayout-0.2.0.1 I get another.

@lierdakil
Copy link
Owner

Uh. Hi. Latest pandoc-crossref is perfectly compatible with pandoc 2.9. I just probably need to update stack.yaml. Hold on.

@lierdakil
Copy link
Owner

Okay, I've pushed an updated stack.yaml to master. There were a couple snags, but overall it's all good, except stack's LTS still only has pandoc-2.7.3, so I had to switch to nightly resolver as to avoid building my own snapshot basically. That's not an issue, unless you're going to develop Haskell applications on top of pandoc-crossref using stack.

Duplicating the updated stack.yaml here just in case.

flags:
  pandoc-crossref:
    enable_flaky_tests: true
ghc-options:
  $targets: -optl-fuse-ld=bfd
packages:
- .
allow-newer: true # data-accessor-template overrestricts template-haskell dependency
extra-deps:
- roman-numerals-0.5.1.5
- data-accessor-template-0.2.1.16
resolver: nightly-2020-02-04

@CGMossa
Copy link
Author

CGMossa commented Feb 4, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants