I am using cabal v. 3.4.0.0.
I have tested commands you provided.
We do CI with ghc 9.0.1, so the builds are confirmed to work.
Try
cabal clean
cabal update
cabal build
Are you using up-to-date cabal?
"krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <krulis....-Re5JQEeQqe8@public.gmane.orgm> writes:
> As Manjaro (Arch derivative) user learning Haskell I am a little struggling
> to set up functional environment for working with Haskell. Currently, I
> have landed on using `ghcup` + `cabal` to manage everything haskell
> related. I have good experience with `rustup` + `cargo`, so I hope my
> experience with `ghcup` will be also "UP."
>
> 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.
> ```
>
> Is it known state of things, or is it some error on my side?
> Thanks in advance for any guidance in this, regards
> Tomas
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/649e1e26-1e08-4d95-a69f-8ee88d4643f7n%40googlegroups.com.