From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28603 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Install with cabal fails with ghc 9.0.1, ghc 8.10.5 OK Date: Tue, 15 Jun 2021 22:47:03 -0700 (PDT) Message-ID: <57f79311-99d1-4ba7-983a-58b530bad1e6n@googlegroups.com> References: <649e1e26-1e08-4d95-a69f-8ee88d4643f7n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2_1714927299.1623822423729" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28253"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBWFAU2DAMGQEP2N7K4Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 16 07:47:08 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f63.google.com ([209.85.210.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltOOK-00078i-60 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Jun 2021 07:47:08 +0200 Original-Received: by mail-ot1-f63.google.com with SMTP id 43-20020a9d0d2e0000b02903f9def84058sf904981oti.9 for ; Tue, 15 Jun 2021 22:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=kkogNggynyQqXMlxQTIh0agsoPS3ACkNNWzx9kVG0o8=; b=EXBBBk9Qnwvb+48dUMOeIUvcyyMST7iYGKy+MGco7nSr/qTQYqE1QATjFD8zdxcUBm P9QFFix2Pq/HmUd+/UFyUdjtBcX0IgmxsPBM1Lz6rJXIFf9VhVV5jwJBZhx8XxRmJg6w rqV/z7TOq2O6IZhKABaKAujuIPF56K9y5TRHyOke5o/1AzNKdMjbauzSZWGO2E+w1+nz U4pOyFlXiCw+XVVgpO8j4lFzhug0morxG87DxcupNxB2djSqRbAM50eW+JaazObreCo8 h7Ix+WklHkyeJcuKnehpt5/NF+BcSH2sLGyiZ+1Ex96hc60UfTdTtc5PFkJF6kxaLxYx aLJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=kkogNggynyQqXMlxQTIh0agsoPS3ACkNNWzx9kVG0o8=; b=IdBVUj0jj/fKCiz7msENwWlFhXtDvPC7Mkir76aaPWzMpTZ0zTShf1jfplvvQfFWQZ 9YZJTn9kCbSDOllt9CZPTx+3vozRFhHSlolJqQcJ3ANHcx+jzVo2KzzW7XqZmtsGPH6O T525hUdiblE61csKSfIuaLLVMIQD798qtLZJRGjWSIg+NjgM8zPSzFZjrCY9vx1r1EhB HzxS0cAd3Rj8RU5wclaqsgtNjOBlRmme+dX0C3PPMVYRIaBInsWwc8FuSIL1IEWGNCV/ Z55XtUIu9H6DUa1oInUlXTca6sMGNz6j+vhBaozMOXjC9E7FjV7i/ow3PcP1S4C1sOxO nSQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=kkogNggynyQqXMlxQTIh0agsoPS3ACkNNWzx9kVG0o8=; b=kkZatt6VCCy+wmDfyqJeZLPQFdoBYDJgd9kzsf8OAQckgsudBH4obaD391Gsqm5+dH xY06zGdgUlQzRNOffNT5x3O3X/w+hy+aFQd3SV/HmMnP+qrz+vJjMITSh8/0Ul2CQ40p cWZLe68yi9sMszk1UHciLttTyaGJHnIOgs/iIl4dnCRThm5/7uxH64e+m+ob07oiLEAK Mx5yUEx3VNst+xeyKl5/K/DCFlAoulZLbIZ92PxPP1w2Dw2cE5kgiVMcz++pDUN7ebZ0 05RbO4fcoXyKzhssrgVBn7aaInvU6OjpL030d2B/aSUWUJLfSGimF9xQkymk3uegxHD3 ca9A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530oJa6f/EqKKPAUtYR649tUD3WjVtZiH3LeX0c/qxgiNxV4aiZ4 hsQ1x5/v7Bg+hdEWp1EAgFg= X-Google-Smtp-Source: ABdhPJzH3HOU9JbcwkNoM5QttRPAslJjKoDaNbz0yJEZ/SxZ1DZeQwKT7exXdeHFp++wfyiDv+7IoA== X-Received: by 2002:a9d:7a55:: with SMTP id z21mr2418577otm.207.1623822426277; Tue, 15 Jun 2021 22:47:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5a83:: with SMTP id o125ls444177oib.7.gmail; Tue, 15 Jun 2021 22:47:04 -0700 (PDT) X-Received: by 2002:aca:e0d6:: with SMTP id x205mr1891942oig.109.1623822424462; Tue, 15 Jun 2021 22:47:04 -0700 (PDT) In-Reply-To: X-Original-Sender: krulis.tomas.tk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28603 Archived-At: ------=_Part_2_1714927299.1623822423729 Content-Type: multipart/alternative; boundary="----=_Part_3_524861207.1623822423729" ------=_Part_3_524861207.1623822423729 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am using cabal v. 3.4.0.0. I have tested commands you provided. ``` cabal clean cabal update ``` runs through OK, `cabal build` asks me for `cabal.project` file. I might=20 have written misleading information -- I was using command: ``` cabal install pandoc pandoc-crossref ``` I was not compiling repo clone directly from source (thats how I would get= =20 the `cabal.project` file, correct?) This `cabal install` command runs through with ghc 8.10.5, but fails with= =20 ghc 9.0.1. The reported error seems very strange to me, because if I=20 understand correctly, cabal is for some reason trying to use very old=20 version of `data-accessor` package ... ? Let me know if I should move my question elsewhere (reddit, SO, cabal=20 issues), this seems mostly like some hidden hickup in my setup ... Addendum: Haskell setup I am using `ghcup` to get haskell running. I have moved on it recently.=20 Before then, I was using Manjaro stable repo to get pandoc and=20 pandoc-crossref, but that becomes clunky when I want to make new projects= =20 with cabal (at least to me). 1. I removed pandoc, pandoc-crossref, ghc, ghc-static and cabal-install=20 from my packages 2. I removed orphaned packages, mostly haskell libraries installed by=20 Manjaro. I have no idea whether I have still some installed. If that might= =20 be the cause, please let me know. As system package, I was having installed= =20 ghc 8.10.5, but searching packages with pacman gives me no haskell-*=20 packages, as they are named in Manjaro/Arch 3. I installed ghcup from here: https://www.haskell.org/ghcup/ 4. I installed cabal (and stack) with ghcup 5. I installed pandoc and pandoc-crossref, all went OK, because ghcup seems= =20 to use ghc 8.10.5 as default for new installation 6. I noticed warning message from ghcup, that there is newer ghc version. I= =20 installed it with ghcup and set it as my new default 7. I deleteted `$HOME/.ghc` and `$HOME/.cabal` folders, since reportedly=20 they cause issues after upgrading ghc or cabal 8. I ran `cabal update` 9. I repeated `cabal install pandoc pandoc-crossref` (with active ghc v.=20 9.0.1) but it throws error I posted in the beginning. Dne st=C5=99eda 16. =C4=8Dervna 2021 v 0:17:13 UTC+2 u=C5=BEivatel John Mac= Farlane napsal: > > 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" writes: > > > As Manjaro (Arch derivative) user learning Haskell I am a little=20 > struggling=20 > > to set up functional environment for working with Haskell. Currently, I= =20 > > have landed on using `ghcup` + `cabal` to manage everything haskell=20 > > related. I have good experience with `rustup` + `cargo`, so I hope my= =20 > > experience with `ghcup` will be also "UP." > > > > With that, I am landing on compiling pandoc from source, not downloadin= g=20 > > binary package. Compilation with ghc v. 8.10.5 works as expected, but= =20 > with=20 > > 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 pando= c) > > [__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=3D=3D2.17.0.0/installed-2.17.0.0, data-accessor-templa= te =3D> > > template-haskell>=3D2.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 sam= e > > 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 wer= e=20 > the > > goals I've had most trouble fulfilling: pandoc, yaml, pandoc-crossref,= =20 > base, > > template-haskell, data-accessor-template, transformers, skylighting-cor= e, > > 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 > > > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/649e1e26-1e08-4d95-a69f-= 8ee88d4643f7n%40googlegroups.com > . > --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/57f79311-99d1-4ba7-983a-58b530bad1e6n%40googlegroups.com. ------=_Part_3_524861207.1623822423729 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am using cabal v. 3.4.0.0.

I have tested commands you provided.
```
cabal clean
cabal update
```

runs through OK, `cabal build` asks me for `c= abal.project` file. I might have written misleading information -- I was us= ing command:

```
cabal install pandoc pa= ndoc-crossref
```

I was not compiling repo clon= e directly from source (thats how I would get the `cabal.project` file, cor= rect?)
This `cabal install` command runs through with ghc 8.10.5,= but fails with ghc 9.0.1. The reported error seems very strange to me, bec= ause if I understand correctly, cabal is for some reason trying to use very= old version of `data-accessor` package ... ?
Let me know if I should mo= ve my question elsewhere (reddit, SO, cabal issues), this seems mostly like= some hidden hickup in my setup ...

Addendum: Hask= ell setup

I am using `ghcup` to get haskell ru= nning. I have moved on it recently. Before then, I was using Manjaro stable= repo to get pandoc and pandoc-crossref, but that becomes clunky when I wan= t to make new projects with cabal (at least to me).

1. I removed pandoc, pandoc-crossref, ghc, ghc-static and cabal-install f= rom my packages
2. I removed orphaned packages, mostly haskell li= braries installed by Manjaro. I have no idea whether I have still some inst= alled. If that might be the cause, please let me know. As system package, I= was having installed ghc 8.10.5, but searching packages with pacman gives = me no haskell-* packages, as they are named in Manjaro/Arch
3. I = installed ghcup from here: https://www.haskell.org/ghcup/
4.= I installed cabal (and stack) with ghcup
5. I installed pandoc a= nd pandoc-crossref, all went OK, because ghcup seems to use ghc 8.10.5 as d= efault for new installation
6. I noticed warning message from ghc= up, that there is newer ghc version. I installed it with ghcup and set it a= s my new default
7. I deleteted `$HOME/.ghc` and `$HOME/.cabal` f= olders, since reportedly they cause issues after upgrading ghc or cabal
8. I ran `cabal update`
9. I repeated `cabal install pando= c pandoc-crossref` (with active ghc v. 9.0.1) but it throws error I posted = in the beginning.
Dne st=C5=99eda 16. =C4=8Dervna 2021=C2=A0v=C2=A00:17:13 UT= C+2 u=C5=BEivatel John MacFarlane napsal:

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.org= m> writes:

> As Manjaro (Arch derivative) user learning Haskell I am a little s= truggling=20
> to set up functional environment for working with Haskell. Current= ly, I=20
> have landed on using `ghcup` + `cabal` to manage everything haskel= l=20
> related. I have good experience with `rustup` + `cargo`, so I hope= my=20
> experience with `ghcup` will be also "UP."
>
> With that, I am landing on compiling pandoc from source, not downl= oading=20
> binary package. Compilation with ghc v. 8.10.5 works as expected, = but with=20
> 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 (depend= ency 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 o= f
> 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 pand= oc)
> [__7] trying: pandoc-crossref-0.3.11.0 (user goal)
> [__8] next goal: data-accessor-template (dependency of pandoc-cros= sref)
> [__8] rejecting: data-accessor-template-0.2.1.16 (conflict:
> template-haskell=3D=3D2.17.0.0/installed-2.17.0.0, data-accessor-template =3D>
> template-haskell>=3D2.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 th= e 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, thes= e were the
> goals I've had most trouble fulfilling: pandoc, yaml, pandoc-c= rossref, base,
> template-haskell, data-accessor-template, transformers, skylightin= g-core,
> containers, unicode-collation
> Try running with --minimize-conflict-set to improve the error mess= age.
> ```
>
> Is it known state of things, or is it some error on my side?
> Thanks in advance for any guidance in this, regards
> Tomas
>
> --=20
> 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/649e= 1e26-1e08-4d95-a69f-8ee88d4643f7n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/57f79311-99d1-4ba7-983a-58b530bad1e6n%40googlegroups.= com.
------=_Part_3_524861207.1623822423729-- ------=_Part_2_1714927299.1623822423729--