win-hp-path: Work with multiple Haskell Platform versions on Windows

[ bsd3, library, program, system ] [ Propose Tags ]

This package provides the use-hppath program for working with multiple versions of the Haskell Platform on Windows.

Warning! The use of this program removes any folders containing the string Haskell from your PATH. For Haskell Platform users on Windows, any such folder is only put into the PATH by Haskell Platform installations, so that behavior is what you want.

When run in a command prompt window, use-hppath enters a sub-shell where the PATH is modified to use the Haskell Platform installed at the path specified on the comand line. In other words, it changes the version of the Haskell Platform in the current command prompt window only. To return to the original command line environment, enter the command exit.

Example usage: use-hppath "C:\Program Files (x86)\Haskell Platform\2014.2.0.0"

Please note: use-hppath always ensures that the hard-coded path C:Program Files\Haskell\bin is located on the PATH and overrides all other Haskell-related paths. This is similar to, but slightly different from, the behavior of the Haskell Platform itself. This can be a good place to put these executables and the batch files described below.

Batch files: This package also provides batch files that allow you to select an active Haskell Platform version by specifying the GHC version, similar to how the corresponding shell scripts work on Linux and Mac OS X. The batch file use-hp.bat is a wrapper for use-hppath. The script find-hp.bat provides the mapping from GHC version to Haskell Platform installation folder. Currently, you must edit find-hp.bat by hand. Place the two batch files somewhere on the PATH, such as C:\Program Files\Haskell\bin. Edit find-hp.bat to match the paths on your own PC when you first install it, and whenever you modify the set of Haskell Platform versions installed on your PC.




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2
Dependencies base (>=4.7 && <5), process (>=1.2), split, win-hp-path (==0.1.0) [details]
License BSD-3-Clause
Copyright Copyright (c) 2014 Yitzchak Gale
Author Yitzchak Gale
Category System
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by YitzGale at 2014-11-12T00:45:42Z
Distributions NixOS:0.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Executables use-hppath
Downloads 2217 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]