Is it possible to have a truly portable Haskell installation on Windows, so everything related to Haskell happens in the same directory. I want to have Haskell installed on a USB drive, so I can use it on any other Windows computer just by plugging it in.
This means that when I say cabal install somePackageeverything happens locally and relative to this single directory (nb for different computers may have a different drive letter assigned to the USB drive). I would like to be able to run this cabal install somePackageon any Windows machine. It would also be nice if I could copy the contents of the USB drive to a local hard drive, and it still works from there (on some Windows computers, USB drives are read-only).
I am aware of the following related StackOverflow questions here and here . Can I customize the cabal configuration file to use relative paths? What about other Haskell tools (e.g. winghci)?
So how do I do this? Install the Haskell platform portable, and then do what?
source
share