<div dir="ltr">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). </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 5:47 PM Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</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_-1866220934865054569WordSection1">
<p class="MsoNormal">I’m trying to install ‘hspec’ on my WSL (Windows subsystem for Linux) system.<u></u><u></u></p>
<p class="MsoNormal">But I fail; see below.<u></u><u></u></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. 
<u></u><u></u></p>
<p class="MsoNormal">Alas, cabal then crashes outright, which should never happen.<u></u><u></u></p>
<p class="MsoNormal">So I’m stuck.  What should I do?<u></u><u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Simon<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpFirst">simonpj@MSRC-9870733:~$ cabal --version<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">cabal-install version 3.0.0.0<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">compiled using version 3.0.0.0 of the Cabal library <u></u>
<u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">simonpj@MSRC-9870733:~$ cabal install hspec<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Resolving dependencies...<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Up to date<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Warning: You asked to install executables, but there are no executables in<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">target: hspec. Perhaps you want to use --lib to install libraries instead.<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">simonpj@MSRC-9870733:~$ cabal install --lib hspec<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Resolving dependencies...<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Up to date<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">Distribution/Simple/GHC.hs:1959:5-56: Irrefutable pattern failed for pattern Just ghcPkgProg<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle"><u></u> <u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">simonpj@MSRC-9870733:~$ which ghc<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">/opt/ghc/bin/ghc<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">simonpj@MSRC-9870733:~$ which ghc-pkg<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">/opt/ghc/bin/ghc-pkg<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpMiddle">simonpj@MSRC-9870733:~$<u></u><u></u></p>
<p class="gmail-m_-1866220934865054569CodeCxSpLast"><u></u> <u></u></p>
</div>
</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>