Simon has a cabal-install that claims to be 3.0.0.0

Ah yes, I installed it thus:

·        sudo add-apt-repository ppa:hvr/ghc-wsl

·        sudo apt-get update

·        sudo apt install cabal-install-3.0

Why did I do that?  Because earlier versions of cabal crashed with a mysterious 
“The futex facility returned an unexpected” something like this 
https://github.com/Microsoft/WSL/issues/3881 or this 
https://github.com/reflex-frp/reflex-platform/issues/293

Apparently Herbert’s 3.0 does not fail in this way.

Simon

From: ghc-devs <ghc-devs-boun...@haskell.org> On Behalf Of Brandon Allbery
Sent: 15 April 2019 23:24
To: Oleg Grenrus <oleg.gren...@iki.fi>
Cc: ghc-devs@haskell.org Devs <ghc-devs@haskell.org>
Subject: Re: Cabal woes

The facts here are in the original message: Simon has a cabal-install that 
claims to be 3.0.0.0, and is treating "install" as "v2-install". So evidently 
*someone* has released it in some fashion, perhaps inappropriately.

On Mon, Apr 15, 2019 at 6:22 PM Oleg Grenrus 
<oleg.gren...@iki.fi<mailto:oleg.gren...@iki.fi>> wrote:

cabal-install-3 isn't released. Please check the facts.

- Oleg

On 16.4.2019 1.17, Brandon Allbery wrote:
I vaguely recall seeing that bug come up with respect to v2-install. And in 
fact am a bit surprised that 3 has been released, since this is highlighting 
that neither it nor the Haskell ecosystem is quite ready for it.

I'd also have expected (and thought I'd seen) "cabal install" in recent 2.x 
warn that it would be "v1-install" in the future.

On Mon, Apr 15, 2019 at 6:13 PM Simon Peyton Jones 
<simo...@microsoft.com<mailto:simo...@microsoft.com>> wrote:
Aha!  That works.  I would never in a million years have found that by myself.  
Thank you.

But

  *   It is terribly mysterious that “cabal install hspec” doesn’t, well, 
install hspec.
  *   It must surely be a bug that “cabal install –lib hspec” simply crashes.

Simon

From: Brandon Allbery <allber...@gmail.com<mailto:allber...@gmail.com>>
Sent: 15 April 2019 23:03
To: Simon Peyton Jones <simo...@microsoft.com<mailto:simo...@microsoft.com>>
Cc: ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
Subject: Re: Cabal woes

Yes, I think a lot of documentation will need to be updated because this. You 
want "cabal v1-install" with cabal 3.

On Mon, Apr 15, 2019 at 6:00 PM Simon Peyton Jones 
<simo...@microsoft.com<mailto:simo...@microsoft.com>> wrote:
Thanks.  But alas I have no clue about whether I want a v1-install or a 
v2-install, nor how to achieve them if I knew what they were.  I just want to 
install ‘hspec’ so that I can use it when compiling a program.  How would I do 
that?

The instructions here 
https://wiki.haskell.org/Cabal-Install<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.haskell.org%2FCabal-Install&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652533306&sdata=pJb05mqT1A0ceYxJ26%2FkMhJCYQ9S7%2Bupn89xZSl7y2I%3D&reserved=0>
 just say “cabal install hspec” which is what I tried.  Those instructions are 
pointed to from here 
https://wiki.haskell.org/Cabal/How_to_install_a_Cabal_package<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.haskell.org%2FCabal%2FHow_to_install_a_Cabal_package&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652533306&sdata=mBDZQXgEtvQLuiTCFCKLtREPmImnr3ljNTHq%2B4A4Nf4%3D&reserved=0>,
 which in turn are pointed to from the main Cabal home page 
https://www.haskell.org/cabal/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.haskell.org%2Fcabal%2F&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652533306&sdata=scKnLWjyw1X5N1VPpBukOq4PXDoeHcYTXa3gT5bKK7E%3D&reserved=0>.

I must be missing something.

Simon

From: Brandon Allbery <allber...@gmail.com<mailto:allber...@gmail.com>>
Sent: 15 April 2019 22:54
To: Simon Peyton Jones <simo...@microsoft.com<mailto:simo...@microsoft.com>>
Cc: ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
Subject: Re: Cabal woes

I think you wanted v1-install to install a library into the user package 
database, since your cabal is 3.x and the v2-* commands are now the default 
(that is, you did what used to be cabal new-install or cabal v2-install).

On Mon, Apr 15, 2019 at 5:47 PM Simon Peyton Jones via ghc-devs 
<ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>> wrote:
I’m trying to install ‘hspec’ on my WSL (Windows subsystem for Linux) system.
But I fail; see below.
For some reason cabal complains about installing a library.  (That seems 
peculiar – isn’t that what cabal is for?)  But it helpfully suggests adding 
–lib.
Alas, cabal then crashes outright, which should never happen.
So I’m stuck.  What should I do?
Thanks
Simon


simonpj@MSRC-9870733:~$ cabal --version

cabal-install version 3.0.0.0

compiled using version 3.0.0.0 of the Cabal library

simonpj@MSRC-9870733:~$ cabal install hspec

Resolving dependencies...

Up to date

Warning: You asked to install executables, but there are no executables in

target: hspec. Perhaps you want to use --lib to install libraries instead.

simonpj@MSRC-9870733:~$ cabal install --lib hspec

Resolving dependencies...

Up to date

Distribution/Simple/GHC.hs:1959:5-56: Irrefutable pattern failed for pattern 
Just ghcPkgProg



simonpj@MSRC-9870733:~$ which ghc

/opt/ghc/bin/ghc

simonpj@MSRC-9870733:~$ which ghc-pkg

/opt/ghc/bin/ghc-pkg

simonpj@MSRC-9870733:~$


_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652689564&sdata=%2B2GyFeiS7e0m8Agu5CfZKCLocpx9COJJMuSa6K6m5RM%3D&reserved=0>


--
brandon s allbery kf8nh
allber...@gmail.com<mailto:allber...@gmail.com>


--
brandon s allbery kf8nh
allber...@gmail.com<mailto:allber...@gmail.com>


--
brandon s allbery kf8nh
allber...@gmail.com<mailto:allber...@gmail.com>


_______________________________________________

ghc-devs mailing list

ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>

http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652689564&sdata=%2B2GyFeiS7e0m8Agu5CfZKCLocpx9COJJMuSa6K6m5RM%3D&reserved=0>
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Csimonpj%40microsoft.com%7C2fdeabc1bf0049584e9708d6c1f11cb5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909638652689564&sdata=%2B2GyFeiS7e0m8Agu5CfZKCLocpx9COJJMuSa6K6m5RM%3D&reserved=0>


--
brandon s allbery kf8nh
allber...@gmail.com<mailto:allber...@gmail.com>
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to