With that, I am landing on compiling pandoc from source, not downloading binary package. Compilation with ghc v. 8.10.5 works as expected, but with ghc 9.0.1 (latest I believe) it fails with this output:
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: pandoc-2.14.0.2 (user goal)
[__1] trying: unicode-collation-0.1.3 (dependency of pandoc)
[__2] trying: template-haskell-2.17.0.0/installed-2.17.0.0 (dependency of
unicode-collation)
[__3] trying: skylighting-core-0.10.5.1 (dependency of pandoc)
[__4] trying: transformers-0.5.6.2/installed-0.5.6.2 (dependency of
skylighting-core)
[__5] trying: containers-0.6.4.1/installed-0.6.4.1 (dependency of pandoc)
[__6] trying: base-4.15.0.0/installed-4.15.0.0 (dependency of pandoc)
[__7] trying: pandoc-crossref-0.3.11.0 (user goal)
[__8] next goal: data-accessor-template (dependency of pandoc-crossref)
[__8] rejecting: data-accessor-template-0.2.1.16 (conflict:
template-haskell==2.17.0.0/installed-2.17.0.0, data-accessor-template =>
template-haskell>=2.11 && <2.17)
[__8] skipping: data-accessor-template-0.2.1.15,
data-accessor-template-0.2.1.14, data-accessor-template-0.2.1.13,
data-accessor-template-0.2.1.12, data-accessor-template-0.2.1.11,
data-accessor-template-0.2.1.10, data-accessor-template-0.2.1.9,
data-accessor-template-0.2.1.8, data-accessor-template-0.2.1.7,
data-accessor-template-0.2.1.6, data-accessor-template-0.2.1.5,
data-accessor-template-0.2.1.4, data-accessor-template-0.2.1.3,
data-accessor-template-0.2.1.2, data-accessor-template-0.2.1.1,
data-accessor-template-0.2.1, data-accessor-template-0.2,
data-accessor-template-0.1.4, data-accessor-template-0.1.3,
data-accessor-template-0.1.2, data-accessor-template-0.1.1 (has the same
characteristics that caused the previous version to fail: excludes
'template-haskell' version 2.17.0.0)
[__8] fail (backjumping, conflict set: data-accessor-template,
pandoc-crossref, template-haskell)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: pandoc, yaml, pandoc-crossref, base,
template-haskell, data-accessor-template, transformers, skylighting-core,
containers, unicode-collation
Try running with --minimize-conflict-set to improve the error message.