<div dir="ltr">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.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 6:22 PM Oleg Grenrus <<a href="mailto:oleg.grenrus@iki.fi">oleg.grenrus@iki.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>cabal-install-3 isn't released. Please check the facts.<br>
</p>
<p>- Oleg<br>
<br>
On 16.4.2019 1.17, Brandon Allbery wrote:<br>
</p>
<blockquote type="cite">
<div dir="ltr">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.
<div><br>
</div>
<div>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.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 6:13
PM Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div class="gmail-m_2916807778046529858gmail-m_-7704206502593406082WordSection1">
<p class="MsoNormal">Aha! That works. I would never in a
million years have found that by myself. Thank you.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But</p>
<ul style="margin-top:0cm" type="disc">
<li class="gmail-m_2916807778046529858gmail-m_-7704206502593406082MsoListParagraph" style="margin-left:0cm">It is terribly mysterious that
“cabal install hspec” doesn’t, well, install hspec.</li>
<li class="gmail-m_2916807778046529858gmail-m_-7704206502593406082MsoListParagraph" style="margin-left:0cm">It must surely be a bug that
“cabal install –lib hspec” simply crashes.</li>
</ul>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Simon</p>
<p class="MsoNormal"> </p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Brandon Allbery <<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>>
<br>
<b>Sent:</b> 15 April 2019 23:03<br>
<b>To:</b> Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>><br>
<b>Cc:</b> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<b>Subject:</b> Re: Cabal woes</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
Yes, I think a lot of documentation will need to be
updated because this. You want "cabal v1-install"
with cabal 3.</p>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
</p>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
On Mon, Apr 15, 2019 at 6:00 PM Simon Peyton Jones
<<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>>
wrote:</p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">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?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The instructions here
<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.haskell.org%2FCabal-Install&data=02%7C01%7Csimonpj%40microsoft.com%7C9dba03cd18af405d806208d6c1ee1601%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909625657350786&sdata=81SaQYxWkpF9nYalL%2B%2FSCbcGMMkYsMnFnpylDncDXu0%3D&reserved=0" target="_blank">
https://wiki.haskell.org/Cabal-Install</a>
just say “cabal install hspec” which is what I
tried. Those instructions are pointed to from
here
<a href="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%7C9dba03cd18af405d806208d6c1ee1601%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909625657350786&sdata=ougOkZ0Dd%2Fep%2FshvVChLiGb9MEhEOW1sYxGnK8KJ8ww%3D&reserved=0" target="_blank">
https://wiki.haskell.org/Cabal/How_to_install_a_Cabal_package</a>, which
in turn are pointed to from the main Cabal
home page
<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.haskell.org%2Fcabal%2F&data=02%7C01%7Csimonpj%40microsoft.com%7C9dba03cd18af405d806208d6c1ee1601%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909625657360794&sdata=I1SnV%2F4c2d05K39NLK%2FQ%2BLdfRoGRRCcKIGXHkNKMGH8%3D&reserved=0" target="_blank">
https://www.haskell.org/cabal/</a>.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I must be missing
something.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Simon</p>
<p class="MsoNormal"> </p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Brandon Allbery <<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>>
<br>
<b>Sent:</b> 15 April 2019 22:54<br>
<b>To:</b> Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>><br>
<b>Cc:</b> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<b>Subject:</b> Re: Cabal woes</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal" style="margin-bottom:6pt">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). </p>
</div>
<p class="MsoNormal" style="margin-bottom:6pt"> </p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:6pt">On Mon, Apr
15, 2019 at 5:47 PM Simon Peyton Jones
via ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>>
wrote:</p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">I’m trying to
install ‘hspec’ on my WSL (Windows
subsystem for Linux) system.</p>
<p class="MsoNormal">But I fail; see
below.</p>
<p class="MsoNormal">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.
</p>
<p class="MsoNormal">Alas, cabal then
crashes outright, which should never
happen.</p>
<p class="MsoNormal">So I’m stuck.
What should I do?</p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal">Simon</p>
<p class="MsoNormal"> </p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$
cabal --version</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">cabal-install
version 3.0.0.0</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">compiled
using version 3.0.0.0 of the Cabal
library
</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$
cabal install hspec</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Resolving
dependencies...</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Up
to date</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Warning:
You asked to install executables,
but there are no executables in</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">target:
hspec. Perhaps you want to use --lib
to install libraries instead.</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$
cabal install --lib hspec</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Resolving
dependencies...</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Up
to date</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">Distribution/Simple/GHC.hs:1959:5-56:
Irrefutable pattern failed for
pattern Just ghcPkgProg</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code"> </p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$
which ghc</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">/opt/ghc/bin/ghc</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$
which ghc-pkg</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">/opt/ghc/bin/ghc-pkg</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code">simonpj@MSRC-9870733:~$</p>
<p class="gmail-m_2916807778046529858gmail-m_-7704206502593406082gmail-m-5387463528054617257gmail-m-1866220934865054569code"> </p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="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%7C9dba03cd18af405d806208d6c1ee1601%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636909625657370807&sdata=3IAzng%2BFJbdlxyhT4atnSCCbfEmsOHHtsPNpA4e95ew%3D&reserved=0" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
</p>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal">--
</p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">brandon s
allbery kf8nh</p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
</p>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal">-- </p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">brandon s allbery kf8nh</p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_2916807778046529858gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>brandon s allbery kf8nh</div>
<div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_2916807778046529858mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_2916807778046529858moz-quote-pre">_______________________________________________
ghc-devs mailing list
<a class="gmail-m_2916807778046529858moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>
<a class="gmail-m_2916807778046529858moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>