Using multiple versions of the Haskell Platform on Windows

The win-hp-path project provides the use-hp command, which makes it easy to switch between different versions of Haskell Platform on Windows. https://github.com/ygale/win-hp-path We are using it for running cabal and GHC in command prompt windows. In particular, we can also use it in build scripts used by the build management team who are not Haskell programmers. Please let me know if you can use this in more complex dev environments, or if you have suggestions about how it could be enhanced to do that. Pull requests are welcome. Thanks, Yitz

Hi,
On 12 November 2014 03:43, Yitzchak Gale
The win-hp-path project provides the use-hp command, which makes it easy to switch between different versions of Haskell Platform on Windows.
Very nice! This should be added to the official installer. There's a ticket already: https://github.com/haskell/haskell-platform/issues/56

Thanks. We also should improve on what the installer
does to the PATH in previous of existing HP installations.
And provide a similar utility for choosing the default HP
(not just in the current window) by changing the PATH
in ther registry.
I took a stab at this last one, but didn't have it working
yet due to getting registry permissions wrong. You can
see it in older commits in the win-hp-path repo on github.
Neil Mitchell pointed out in the reddit thread that this
utility actually isn't specific to HP - it can be used to
choose between different GHC versions regardless of
whether they are part of HP installations. But that is not
for the faint of heart.
Regards,
Yitz
On Wed, Nov 12, 2014 at 3:18 PM, Mikhail Glushenkov
Hi,
On 12 November 2014 03:43, Yitzchak Gale
wrote: The win-hp-path project provides the use-hp command, which makes it easy to switch between different versions of Haskell Platform on Windows.
Very nice! This should be added to the official installer. There's a ticket already: https://github.com/haskell/haskell-platform/issues/56
participants (2)
-
Mikhail Glushenkov
-
Yitzchak Gale