-
Notifications
You must be signed in to change notification settings - Fork 207
Update shake file to be able to install via cabal new-build #1047
Comments
Is it documented somewhere how cabal-helper needs to be installed for hie to work? |
@power-fungus The install process does make sure that it is installed, if you install via the makefile / shakefile etc. But pehaps it should be added to the documentation. |
Do new targets make sense?
The new commands are consistent to the existing targets and I prefer |
Those could work I wonder if we could do something like
i.e. just have it as a mode flag, but keep the other targets the same. |
Following questions: |
Never mind, go with the explicit prefix per target. I think it is better to get the build in so they can be used, we can tweak the UI on them later, if it is a problem. |
Understood, then I will take a look at it in the next days. |
Several issues are present:
possibilities are:
I am in favor of re-using the |
For now I decided to use the first approach, we let stack install the ghc and get the path to it. However, should the executables installed in the same way stack executables are being installed? E.g. to |
Strictly speaking, there is not much point installing a hie version for a GHC version that is not currently on a user's machine. So if I only have GHC 8.4.4 installed, the hie installer should perhaps only install And I was wondering if we should not do some kind of simple terminal client / CLI setup to ask what versions you want, and then persist this choice into say |
That might be sensible, but reintroduces the problem of platform independence... Any intermediate solution that might be desirable? I implemented a proof of concept where different ghc versions have been installed by stack. |
Yes, that is how it works in general, if you look in the bin directory for an installed ghc you will see it has ghc and a symlink to ghc-8.4.4 or whatever. |
Where do we have to look, only into |
I would say on the path only.
Alan
…On Mon, 11 Feb 2019, 23:59 fendor ***@***.*** wrote:
Where do we have to look, only into $PATH or do we need to look in more
places?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1047 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZAB08ADhYsGkcQOl2bqVm8HWFU41Mwks5vMee6gaJpZM4Z8rkS>
.
|
I adapt the target |
This will require passing in a flag requesting this, I presume, and also managing the symlink process, to end up with the exe names we currently have.
My reading of the options says that
cabal new-install --program-suffix='-8.4.3'
should do it, but this does not seem to be the case.The text was updated successfully, but these errors were encountered: