From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28604 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: Wed, 16 Jun 2021 01:14:19 -0700 (PDT) Message-ID: <1479218a-3179-415c-9d80-058f66a72754n@googlegroups.com> References: <649e1e26-1e08-4d95-a69f-8ee88d4643f7n@googlegroups.com> <57f79311-99d1-4ba7-983a-58b530bad1e6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_188_1631841242.1623831259482" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25970"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBXHFU2DAMGQEJT45O3Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 16 10:14:23 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltQgp-0006bZ-7U for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Jun 2021 10:14:23 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id n62-20020a4a53410000b0290246a4799849sf1180303oob.8 for ; Wed, 16 Jun 2021 01:14:23 -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=9Pi5ICOkLqQDqEzesuaT6TDih/PgoYnoS+VE9AAHi4A=; b=bJSP9VNsms9uCGlaBAcD/rewqiSw13GjqxO/tVDXrnwgjqkDF+3dtKFn2V/EGnphcS Bq/XTMafYCyG7AB1T1QURIDz1Ksdsy0wbJ0yat46Awt5l/ui2HvpfSjeSliAeyyL+F/D ykOC0V3EYZcY74X+q9yOvtgVVgG6m1EDiD4JoaVCfCf5GL/LsD6fn5p0B255cTmAT8lD pUYb2/7RhD74WycizN+61/jphxY1Ym834e+l65glXa0U8c63ug5UBfboQLEsyp8VpqxB 8E+p/hIWBsVOb9uu/s5hi98TjFtGZwrC5BrPEXPIwA/GsNn+lSf9vGPe68euZTuyFS71 nSYQ== 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=9Pi5ICOkLqQDqEzesuaT6TDih/PgoYnoS+VE9AAHi4A=; b=dBYnUPkmJnT7OIilNIDrtc2KMs0qNccmf2eEyBHOwc2ua31SznQnzRUGDe7kOtWSXP Fn9D/ZPAaBYO07Oavj+3meYYih8/tf8J4GnMds9mB6pGFKnxwhOqT9P/n0GhkY9Vy1Tt vJzva3KyuCffCPsd+o1IjTJ3Q9/1vMe8fzcH1e1fFHdw7DS2vgdOV3rfnewL53r1p+Uz Xdmg2tW8nlkmolYv62ngaDi3gy7tWfEk9y4pWvPVNYu1it0MZRIZ4hP0CFs2U7VMXDAm 8MYBg1yrnY4ZktDcTagC54LiEPFq9bje1aYEtfLMODUt1tsL2WOvdHBMBRfThtFT+IdZ 9a0A== 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=9Pi5ICOkLqQDqEzesuaT6TDih/PgoYnoS+VE9AAHi4A=; b=teNo7jMEy3kB6CXI0c6knkUFqf3+0KzwSAi/QI6opMjN4CK7+h+gHD5/5uVYvhoZbu LMKtx1PhQWgeOJnz8icljgnUXFpdDPf7NRVch04CTIMUTFTWnZGjlqzoI9JGnOwattUa WWDwuP9BuSjGHMi0qJWyqQErW6sBurGtErkLMu4ShsKnThJSfywL/1YhI+GTasJDzpHx 14HsOoXR2zf7a3BszdsSP7lxRqWosbMizpEggZnOqOpZxS+45sXQwLRV/glNc/12evvm xzupWrEmTy/hh6GOyNctyrOfjoprZojbG0Oef/OVQAr/vBFql2OxP6dNe1qX1KIr9cOV R4uw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531X+xzNT5sl09yXLhbC7qAWxlkaETPpXgI3w5a4gnfYZk4AS7bW 3n4Qvj3/W8iyzTNdPKEVjPs= X-Google-Smtp-Source: ABdhPJzu1t7lqsY2RawMh94LJZlEIdXOTP6tvKt5ImGphTd2+ujzz2sbtZ42F3c3P0Gft1mHK1HqRA== X-Received: by 2002:aca:7541:: with SMTP id q62mr6105793oic.37.1623831262173; Wed, 16 Jun 2021 01:14:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6285:: with SMTP id w127ls560089oib.4.gmail; Wed, 16 Jun 2021 01:14:20 -0700 (PDT) X-Received: by 2002:a05:6808:1511:: with SMTP id u17mr6271352oiw.53.1623831260325; Wed, 16 Jun 2021 01:14:20 -0700 (PDT) In-Reply-To: <57f79311-99d1-4ba7-983a-58b530bad1e6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:28604 Archived-At: ------=_Part_188_1631841242.1623831259482 Content-Type: multipart/alternative; boundary="----=_Part_189_1377988295.1623831259482" ------=_Part_189_1377988295.1623831259482 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The issue was with pandoc-crossref. Apparently, it doesnt suppor ghc 9.0 yet, per this=20 issue: https://github.com/lierdakil/pandoc-crossref/issues/312 I am very sorry for reporting it here, I am used to install both programs= =20 together, since they are closely tied up, and only after guidance from=20 cabal team I connected the dots. Dne st=C5=99eda 16. =C4=8Dervna 2021 v 7:47:03 UTC+2 u=C5=BEivatel krulis..= ..@gmail.com=20 napsal: > 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 ge= t=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 migh= t=20 > be the cause, please let me know. As system package, I was having install= ed=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=20 > seems to use ghc 8.10.5 as default for new installation > 6. I noticed warning message from ghcup, that there is newer ghc version.= =20 > I 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 M= acFarlane napsal: > >> >> We do CI with ghc 9.0.1, so the builds are confirmed to work.=20 >> Try=20 >> >> cabal clean=20 >> cabal update=20 >> cabal build=20 >> >> Are you using up-to-date cabal?=20 >> >> "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes:=20 >> >> > 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."=20 >> >=20 >> > With that, I am landing on compiling pandoc from source, not=20 >> downloading=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:=20 >> >=20 >> > ```=20 >> > Resolving dependencies...=20 >> > cabal: Could not resolve dependencies:=20 >> > [__0] trying: pandoc-2.14.0.2 (user goal)=20 >> > [__1] trying: unicode-collation-0.1.3 (dependency of pandoc)=20 >> > [__2] trying: template-haskell-2.17.0.0/installed-2.17.0.0 (dependency= =20 >> of=20 >> > unicode-collation)=20 >> > [__3] trying: skylighting-core-0.10.5.1 (dependency of pandoc)=20 >> > [__4] trying: transformers-0.5.6.2/installed-0.5.6.2 (dependency of=20 >> > skylighting-core)=20 >> > [__5] trying: containers-0.6.4.1/installed-0.6.4.1 (dependency of=20 >> pandoc)=20 >> > [__6] trying: base-4.15.0.0/installed-4.15.0.0 (dependency of pandoc)= =20 >> > [__7] trying: pandoc-crossref-0.3.11.0 (user goal)=20 >> > [__8] next goal: data-accessor-template (dependency of pandoc-crossref= )=20 >> > [__8] rejecting: data-accessor-template-0.2.1.16 (conflict:=20 >> > template-haskell=3D=3D2.17.0.0/installed-2.17.0.0, data-accessor-templ= ate=20 >> =3D>=20 >> > template-haskell>=3D2.11 && <2.17)=20 >> > [__8] skipping: data-accessor-template-0.2.1.15,=20 >> > data-accessor-template-0.2.1.14, data-accessor-template-0.2.1.13,=20 >> > data-accessor-template-0.2.1.12, data-accessor-template-0.2.1.11,=20 >> > data-accessor-template-0.2.1.10, data-accessor-template-0.2.1.9,=20 >> > data-accessor-template-0.2.1.8, data-accessor-template-0.2.1.7,=20 >> > data-accessor-template-0.2.1.6, data-accessor-template-0.2.1.5,=20 >> > data-accessor-template-0.2.1.4, data-accessor-template-0.2.1.3,=20 >> > data-accessor-template-0.2.1.2, data-accessor-template-0.2.1.1,=20 >> > data-accessor-template-0.2.1, data-accessor-template-0.2,=20 >> > data-accessor-template-0.1.4, data-accessor-template-0.1.3,=20 >> > data-accessor-template-0.1.2, data-accessor-template-0.1.1 (has the=20 >> same=20 >> > characteristics that caused the previous version to fail: excludes=20 >> > 'template-haskell' version 2.17.0.0)=20 >> > [__8] fail (backjumping, conflict set: data-accessor-template,=20 >> > pandoc-crossref, template-haskell)=20 >> > After searching the rest of the dependency tree exhaustively, these=20 >> were the=20 >> > goals I've had most trouble fulfilling: pandoc, yaml, pandoc-crossref,= =20 >> base,=20 >> > template-haskell, data-accessor-template, transformers,=20 >> skylighting-core,=20 >> > containers, unicode-collation=20 >> > Try running with --minimize-conflict-set to improve the error message.= =20 >> > ```=20 >> >=20 >> > Is it known state of things, or is it some error on my side?=20 >> > Thanks in advance for any guidance in this, regards=20 >> > Tomas=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > 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 >> >> > --=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/1479218a-3179-415c-9d80-058f66a72754n%40googlegroups.com. ------=_Part_189_1377988295.1623831259482 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The issue was with pandoc-crossref.
Apparently, it doesnt suppor ghc 9.0= yet, per this issue: https://github.com/lierdakil/pandoc-crossref/iss= ues/312

I am very sorry for reporting it here, I am used to install = both programs together, since they are closely tied up, and only after guid= ance from cabal team I connected the dots.

Dne st=C5=99eda 16. =C4=8Dervna 20= 21=C2=A0v=C2=A07:47:03 UTC+2 u=C5=BEivatel krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org napsal:
I am using cabal= v. 3.4.0.0.

I have tested commands you provided.

```
cabal clean
cabal update
```
<= br>
runs through OK, `cabal build` asks me for `cabal.project` fi= le. I might 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 the `cabal.project` file, correct?)
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, because if I unders= tand correctly, cabal is for some reason trying to use very old version of = `data-accessor` package ... ?
Let me know if I should move my question e= lsewhere (reddit, SO, cabal issues), this seems mostly like some hidden hic= kup in my setup ...

Addendum: Haskell setup

I am using `ghcup` to get haskell running. I have mo= ved on it recently. Before then, I was using Manjaro stable repo to get pan= doc and pandoc-crossref, but that becomes clunky when I want to make new pr= ojects with cabal (at least to me).

1. I removed p= andoc, pandoc-crossref, ghc, ghc-static and cabal-install from my packages<= /div>
2. I removed orphaned packages, mostly haskell libraries installe= d by Manjaro. I have no idea whether I have still some installed. If that m= ight be the cause, please let me know. As system package, I was having inst= alled 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:=C2=A0https://www.hask= ell.org/ghcup/
4. I installed cabal (and stack) with ghcup
5. I installed pandoc and pandoc-crossref, all went OK, because ghc= up seems to use ghc 8.10.5 as default for new installation
6. I n= oticed warning message from ghcup, that there is newer ghc version. I insta= lled it with ghcup and set it as my new default
7. I deleteted `$= HOME/.ghc` and `$HOME/.cabal` folders, since reportedly they cause issues a= fter upgrading ghc or cabal
8. I ran `cabal update`
9. = I repeated `cabal install pandoc pandoc-crossref` (with active ghc v. 9.0.1= ) but it throws error I posted in the beginning.
Dne st=C5=99eda 16. =C4=8Dervn= a 2021=C2=A0v=C2=A00:17:13 UTC+2 u=C5=BEivatel John MacFarlane napsal:
<= /div>

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....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> 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/1479218a-3179-415c-9d80-058f66a72754n%40googlegroups.= com.
------=_Part_189_1377988295.1623831259482-- ------=_Part_188_1631841242.1623831259482--