-
Notifications
You must be signed in to change notification settings - Fork 91
Add a vcvars32.bat-like bat file #56
Comments
if you're using cygwin's bash (actually, a slight variation should work with unix/bash as well), you can do something like the following in your
Calling Oh, and of course I have several GHCis in my right-click menu, as Then one only needs to be able to go directly to the docs matching the currently selected GHC, which I can do from within GHCi, via |
Adding ghc-paths at its current state to HP would be useless, since it refers to the paths on the build machine, not the machine on which HP is installed. |
By the nature of ghc-paths (capture the GHC installation paths in a Haskell module), you cannot bundle an installed version. That doesn't mean you couldn't install a bundled version, though!-) That is what post-install scripts are for, usually (call cabal install on a local copy, at the end of the HP installation). I'm not saying it should be added - on its own, it is easy enough to install from hackage. The point is that it was designed to simplify a whole class of installation path related issues, so having it available for installation might be very useful (and better than reinventing its functionality). This ticket is but one example of how it might make your job easier to have it at hand: I just install ghc-paths with every GHC I install, and if I have the path to ghc.exe, I can find everything else for that version (ghc-pkg.exe, libdir, docs), so I only have to worry about changing one path (and using a different GHCi with an absolute path works just as well). As I said, just a suggestion. |
It would be a bit more tricky than just calling cabal install (we can't assume a working Internet connection), but doable. More serious problem with ghc-paths in its current form is that including it would again make the HP directory non-relocatable. |
A better idea is to just ship MSYS and put a shortcut to it from the program menu. This will provide an environment in which the user can build libraries with C sources and |
Is there a similar issue for Mac OS X? https://github.com/spl/ghc-ver |
To make it easier to use several HP versions installed on the same machine, there should be a convenient way to temporary modify the environment to make a specific HP version the default. If you have used Visual Studio, then vcvars32.bat is what I have in mind. Bulat also suggested adding a GUI tool for this.
The text was updated successfully, but these errors were encountered: