<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">Unfortunately ghc 8.8.1 and cabal-install 3.0 are not compatible with ghc-pkg as documented in <a href="https://github.com/haskell/cabal/issues/6262#issuecomment-538850477">https://github.com/haskell/cabal/issues/6262#issuecomment-538850477</a>. As Daniel Grober wrote there:</div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><p style="font-family:Arial,Helvetica,sans-serif;font-size:small">I think this is expected behaviour, at least from the cabal side of things. Version 3.0.0.0 switched to using v2-build by default so installed libraries are now registered into the "default" package environment file in <code>.ghc/*/environments/default</code> as well as a package-db in <code>.cabal/store/ghc-*/package.db</code> which GHC doesn't know about by itself.</p></div></div><div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><p style="font-family:Arial,Helvetica,sans-serif;font-size:small">AFAICS ghc-pkg simply doesn't have support for listing package environments which sort of kind of makes sense but also breaks this workflow. I think this should be reported as a GHC bug but I'm not sure it would even be a good idea to add pkg-env support to ghc-pkg.</p></div></div></blockquote><div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br class="gmail-Apple-interchange-newline"></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br>I thought this might be a ghc issue but since nobody else was complaining I assumed I must have done something wrong. Should I file a ghc bug ?</div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">Thanks</div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">George</div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 7, 2019 at 6:20 PM George Colpitts <<a href="mailto:george.colpitts@gmail.com">george.colpitts@gmail.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 dir="ltr"><div dir="ltr"><div style="font-family:"times new roman",serif;font-size:large">Thanks for everybody's responses. I figured out that the following </div><div style="font-family:"times new roman",serif;font-size:large"><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div style="font-family:"times new roman",serif;font-size:large">cabal-install users should note that cabal-install-3.0 or later is required for use with GHC 8.8.</div></div></blockquote><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">means I should have cabal-install-3.0 before installing 8.8.1. Once I did that everything is fine.</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">Maybe configure should give an error if the user does not have cabal-install-3.0?</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">Thanks</div><div style="font-family:"times new roman",serif;font-size:large">George</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 1:48 PM Shayne Fletcher <<a href="mailto:shayne.fletcher@daml.com" target="_blank">shayne.fletcher@daml.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 dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">I got there by doing,<br>```<br> cabal v2-install --installdir=~/.cabal/bin alex<br> cabal v2-install --installdir=~/.cabal/bin happy<br>```<br>and things seemed to be going smoothly enough after that.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 12:08 PM Carter Schonwald <<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.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><div dir="auto">V1 or v2 install?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 2, 2019 at 11:42 AM George Colpitts <<a href="mailto:george.colpitts@gmail.com" target="_blank">george.colpitts@gmail.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 dir="ltr"><div dir="ltr"><div style="font-family:"times new roman",serif;font-size:large"><a href="https://www.haskell.org/ghc/blog/20190825-ghc-8.8.1-released.html" target="_blank">https://www.haskell.org/ghc/blog/20190825-ghc-8.8.1-released.html</a> says</div><div style="font-family:"times new roman",serif;font-size:large"><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:14px;color:rgb(232,62,140);word-break:break-word">cabal-install</code><span style="color:rgb(33,37,41);font-family:sans-serif;font-size:16px"> users should note that </span><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:14px;color:rgb(232,62,140);word-break:break-word">cabal-install-3.0</code><span style="color:rgb(33,37,41);font-family:sans-serif;font-size:16px"> or later is required for use with GHC 8.8.<br><br></span></blockquote><div style="font-family:"times new roman",serif;font-size:large">but this seems wrong or have I done something wrong?</div><div style="font-family:"times new roman",serif;font-size:large"><br></div>$ cabal install cabal-install<br>cabal install cabal-install<br><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large">...</span><br><br>Resolving dependencies...<br>cabal: Could not resolve dependencies:<br>[__0] trying: cabal-install-3.0.0.0 (user goal)<br>[__1] next goal: time (dependency of cabal-install)<br>[__1] rejecting: time-1.9.3/installed-1.9... (conflict: cabal-install =><br>base>=4.8 && <4.13, time => base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__1] trying: time-1.9.3<br>[__2] next goal: stm (dependency of cabal-install)<br>[__2] rejecting: stm-2.5.0.0/installed-2.5... (conflict: cabal-install =><br>base>=4.8 && <4.13, stm => base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__2] trying: stm-2.5.0.0<br>[__3] next goal: process (dependency of cabal-install)<br>[__3] rejecting: process-1.6.5.1/installed-1.6... (conflict: cabal-install =><br>base>=4.8 && <4.13, process => base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__3] trying: process-1.6.5.1<br>[__4] next goal: pretty (dependency of cabal-install)<br>[__4] rejecting: pretty-1.1.3.6/installed-1.1... (conflict: cabal-install =><br>base>=4.8 && <4.13, pretty => base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__4] trying: pretty-1.1.3.6<br>[__5] next goal: network (dependency of cabal-install)<br>[__5] rejecting: network-3.1.0.1/installed-CeX... (conflict: cabal-install =><br>base>=4.8 && <4.13, network => base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__5] trying: network-3.1.0.1<br>[__6] trying: hackage-security-0.5.3.0 (dependency of cabal-install)<br>[__7] next goal: template-haskell (dependency of hackage-security)<br>[__7] rejecting: template-haskell-2.15.0.0/installed-2.1... (conflict:<br>cabal-install => base>=4.8 && <4.13, template-haskell =><br>base==<a href="http://4.13.0.0/installed-4.1.." target="_blank">4.13.0.0/installed-4.1..</a>.)<br>[__7] rejecting: template-haskell-2.15.0.0, template-haskell-2.14.0.0,<br>template-haskell-2.13.0.0, template-haskell-2.12.0.0,<br>template-haskell-2.11.1.0, template-haskell-2.11.0.0,<br>template-haskell-2.10.0.0, template-haskell-2.9.0.0, template-haskell-2.8.0.0,<br>template-haskell-2.7.0.0, template-haskell-2.6.0.0, template-haskell-2.5.0.0,<br>template-haskell-2.4.0.1, template-haskell-2.4.0.0, template-haskell-2.3.0.1,<br>template-haskell-2.3.0.0, template-haskell-2.2.0.0 (constraint from<br>non-upgradeable package requires installed instance)<br>[__7] fail (backjumping, conflict set: cabal-install, hackage-security,<br>template-haskell)<br>After searching the rest of the dependency tree exhaustively, these were the<br>goals I've had most trouble fulfilling: base, cabal-install, directory,<br>template-haskell, process, time, network, pretty, hackage-security, deepseq,<br><div style="font-family:"times new roman",serif;font-size:large"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">HTTP, stm, cabal-install:lib</span></div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2019 at 6:25 AM Ben Gamari <<a href="mailto:ben@well-typed.com" target="_blank">ben@well-typed.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"><br>
Hello everyone,<br>
<br>
The GHC team is pleased to announce the release candidate for GHC 8.8.1.<br>
The source distribution, binary distributions, and documentation are<br>
available at<br>
<br>
<a href="https://downloads.haskell.org/ghc/8.8.1" rel="noreferrer" target="_blank">https://downloads.haskell.org/ghc/8.8.1</a><br>
<br>
This release is the culmination of over 3000 commits by over one hundred<br>
contributors and has several new features and numerous bug fixes<br>
relative to GHC 8.6:<br>
<br>
* Visible kind applications are now supported (GHC Proposal #15)<br>
<br>
* Profiling now works correctly on 64-bit Windows (although still may<br>
be problematic on 32-bit Windows due to platform limitations; see<br>
#15934)<br>
<br>
* A new code layout algorithm for amd64's native code generator<br>
significantly improving the runtime performance of some kernels<br>
<br>
* The introduction of a late lambda-lifting pass which may reduce<br>
allocations significantly for some programs.<br>
<br>
* Further work on Trees That Grow, enabling improved code re-use of the<br>
Haskell AST in tooling<br>
<br>
* Users can write `forall` in more contexts (GHC Proposal #7)<br>
<br>
* The pattern-match checker is now more precise in the presence of<br>
strict fields with uninhabited types.<br>
<br>
* A comprehensive audit of GHC's memory ordering barriers has been<br>
performed, resulting in a number of fixes that should significantly<br>
improve the reliability of programs on architectures with<br>
weakly-ordered memory models (e.g. PowerPC, many ARM and AArch64<br>
implementations).<br>
<br>
* A long-standing linker limitation rendering GHCi unusable with<br>
projects with cyclic symbol dependencies has been fixed (#13786)<br>
<br>
* Further work on the Hadrian build system<br>
<br>
* Countless miscellaneous bug-fixes<br>
<br>
Unfortunately, due to a build issue (#17108) found late in the release process<br>
i386 Windows builds are currently unavailable. These will be provided in<br>
the coming weeks.<br>
<br>
As always, if anything looks amiss do let us know.<br>
<br>
Happy compiling!<br>
<br>
Cheers,<br>
<br>
- Ben<br>
<br>
<br>
[1] <a href="https://downloads.haskell.org/ghc/8.8.1/docs/html/users_guide/8.8.1-notes.html" rel="noreferrer" target="_blank">https://downloads.haskell.org/ghc/8.8.1/docs/html/users_guide/8.8.1-notes.html</a><br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div></div>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></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"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="letter-spacing:normal;padding:10px 0px 10px 10px;width:300px;max-width:300px;color:rgb(26,40,77);font-size:12px"><div style="color:rgb(33,33,33);font-size:13px"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="padding:10px 0px 10px 10px;width:300px;max-width:300px;color:rgb(26,40,77);font-size:12px"><div style="color:rgb(34,34,34);font-size:small"><b><font color="#000000">Shayne Fletcher</font></b><br></div><div style="font-size:small;color:rgb(80,0,80)"><font size="1"><font color="#444444">Language Engineer </font><font color="#0b5394"><b>/</b></font><font color="#444444"> +1 917 699 7663</font><br></font></div><font size="1" style="color:rgb(34,34,34)"><a href="https://digitalasset.com/" style="color:rgb(17,85,204)" target="_blank"><b><font color="#3d85c6">Digital Asset</font></b></a><font style="color:rgb(26,40,77)">, creators of </font><b><a href="https://daml.com/" style="color:rgb(17,85,204)" target="_blank"><font color="#3d85c6">DAML</font></a></b></font><br></div></div></div></div></div></div></div></div><div style="font-family:sans-serif;color:rgb(33,33,33);font-size:13px"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;background-color:rgb(255,255,255)">This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at </span><a href="http://www.digitalasset.com/emaildisclaimer.html" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;background-color:rgb(255,255,255)" target="_blank">http://www.digitalasset.com/emaildisclaimer.html</a><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;background-color:rgb(255,255,255)">. If you are not the intended recipient, please delete this message.</span></blockquote></div></div>
</blockquote></div></div>