<div dir="ltr"><div>Hello,</div><div>perhaps check the install repository. I had the same problem:</div><div>With an old version of ghc and cabal installed, the symlink isn't changed to point towards the new one.</div><div>You can do so manually:</div><div>- get the dir of your ghc: $ which ghc</div><div>- the directory ends with /bin/</div><div>- in fact this would be a symlink towards a version of ghc (not the version you want)</div><div>- simply change the symbolic link (usually the actual ghc dir is right next to the bin symlink)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 29, 2019 at 4:37 AM Lawrence Bottorff <<a href="mailto:borgauf@gmail.com">borgauf@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 dir="ltr"><div dir="ltr"><div dir="ltr">So I've set up the Herbert V. Riedel PPA</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">sudo add-apt-repository ppa:hvr/ghc</div><div dir="ltr">sudo apt-get update</div><div dir="ltr"><br></div><div>then I installed ghc-8.6.3 and cabal-install-2.4</div><div><br></div><div>sudo apt-get install ghc-8.6.3<br></div><div>sudo apt-get install cabal-install-2.4<br></div><div><br></div><div>. . . and stuff seems to be installing. However a check finds no cabal and ghc version 8.2.2</div><div><br></div><div>What am I missing?</div><div><br></div><div>LB</div><div><br></div><div><br></div><div><br></div></div><div dir="ltr"><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_-2524882712566125245gmail_attr">On Mon, Jan 28, 2019 at 11:39 AM Baojun Wang <<a href="mailto:wangbj@gmail.com" target="_blank">wangbj@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 dir="ltr"><div class="gmail_default" style="font-family:"times new roman",serif">You can install `ghc` and `cabal-install` (provide the `cabal` command line application) using hvr ppa, if you have a project created by `cabal` or `stack`, then that's pretty much all you need (ghc+cabal-install), you can run </div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif">cabal new-update # update the local package package indexes</div><div class="gmail_default" style="font-family:"times new roman",serif">cabal new-build # to build the package</div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif">  or use</div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif">cabal init # to create a project</div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif">There're other commands such as `cabal new-install, cabal new-test, cabal new-run` could be quite useful, the official document can be found at: <a href="https://cabal.readthedocs.io/en/latest/nix-local-build-overview.html" target="_blank">https://cabal.readthedocs.io/en/latest/nix-local-build-overview.html</a></div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif"> If you choose `stack` then stack can manage ghc installation by itself, the stack website should have enough information to get started:</div><div class="gmail_default" style="font-family:"times new roman",serif"><a href="https://docs.haskellstack.org/en/stable/README/" target="_blank">https://docs.haskellstack.org/en/stable/README/</a><br></div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif">Personally I would prefer hvr ghc/cabal-install, or stack, instead of ghc/cabal provided by the system, as they don't usually seems to up-to-date, and cabal-install manages packages dependencies a lot better with the new command line interfaces (cabal new-*).</div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div><div class="gmail_default" style="font-family:"times new roman",serif"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_-2524882712566125245gmail-m_-8920727530953368970gmail-m_-8823168091871819543gmail_attr">On Mon, Jan 28, 2019 at 11:29 AM Lawrence Bottorff <<a href="mailto:borgauf@gmail.com" target="_blank">borgauf@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">So I've got the HVR ppa going, now, what specifically do I want to install, type on the command? I guess I'm hearing stack?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_-2524882712566125245gmail-m_-8920727530953368970gmail-m_-8823168091871819543gmail-m_14307721498748811gmail_attr">On Sun, Jan 27, 2019 at 11:39 PM Graham Gill <<a href="mailto:math.simplex@gmail.com" target="_blank">math.simplex@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="auto">I faced a similar problem recently and wasn't able to finish building Liquid Haskell and HIE until I started afresh. I wiped/uninstalled old Haskell platforms, stack and cabal. Then for a system GHC and cabal I used the HVR ppa. You could also use ghcup. See the ghcup page on github which links to the HVR ppa also.  See the downloads page at <a href="http://haskell.org" target="_blank">haskell.org</a>, under Linux generic installer, which currently recommends using ghcup. (I liked the flavour of the HVR ppa more so went with that. )<div dir="auto"><br></div><div dir="auto">For anything else I'm using the latest stack.</div><div dir="auto"><br></div><div dir="auto">I think my setup is much cleaner as a result, and tools better organised. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Graham</div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 28, 2019, 11:12 Lawrence Bottorff <<a href="mailto:borgauf@gmail.com" target="_blank">borgauf@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">I'm on Ubuntu 18.10 and I've made a real mess of my Haskell install. In the past I believe I installed from source. Then I must have tried to install through Ubuntu's repo, then I installed through the Haskell tool stack (curl -sSL <a href="https://get.haskellstack.org/" rel="noreferrer" target="_blank">https://get.haskellstack.org/</a> | sh). Now I can type ghci at the command line and I get 8.4.2, through stack ghci I get version 8.0.1, while starting a ghci REPL in Emacs goes with the 8.4.2. The Ubuntu repo version seems to be 8.2.2, BTW. What can I do/what should I do to straighten this out? What is the definitive install of Haskell, stack or Haskell platform, and what role should cabal play?</div><div dir="ltr"><br></div><div>LB</div></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" rel="noreferrer" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>